Manual install 2.0.0 On Debian 9, got Error : meteor-dev-bundle@ install: `node npm-rebuild.js`

Description

Hi, all,

I just want to install rocketchat in my small vps with only 512m ram,
according to https://rocket.chat/docs/installation/manual-installation/debian/

curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
cd /tmp/bundle/programs/server && npm install

then: I always got the following errors, thanks for any help!

4326 verbose linkMans meteor-dev-bundle@
4327 silly install meteor-dev-bundle@
4328 info lifecycle meteor-dev-bundle@~install: meteor-dev-bundle@
4329 verbose lifecycle meteor-dev-bundle@~install: unsafe-perm in lifecycle true
4330 verbose lifecycle meteor-dev-bundle@~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/tmp/bundle/programs/server/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
4331 verbose lifecycle meteor-dev-bundle@~install: CWD: /tmp/bundle/programs/server
4332 silly lifecycle meteor-dev-bundle@~install: Args: [ ‘-c’, ‘node npm-rebuild.js’ ]
4333 silly lifecycle meteor-dev-bundle@~install: Returned: code: 1 signal: null
4334 info lifecycle meteor-dev-bundle@~install: Failed to exec install script
4335 verbose stack Error: meteor-dev-bundle@ install: node npm-rebuild.js
4335 verbose stack Exit status 1
4335 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
4335 verbose stack at emitTwo (events.js:126:13)
4335 verbose stack at EventEmitter.emit (events.js:214:7)
4335 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
4335 verbose stack at emitTwo (events.js:126:13)
4335 verbose stack at ChildProcess.emit (events.js:214:7)
4335 verbose stack at maybeClose (internal/child_process.js:925:16)
4335 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
4336 verbose pkgid meteor-dev-bundle@
4337 verbose cwd /tmp/bundle/programs/server
4338 verbose Linux 4.9.0-8-amd64
4339 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “install”
4340 verbose node v8.11.4
4341 verbose npm v5.6.0
4342 error code ELIFECYCLE
4343 error errno 1
4344 error meteor-dev-bundle@ install: node npm-rebuild.js
4344 error Exit status 1
4345 error Failed at the meteor-dev-bundle@ install script.
4345 error This is probably not a problem with npm. There is likely additional logging output above.
4346 verbose exit [ 1, true ]

Server Setup Information

  • Version of Rocket.Chat Server: 2.0.0
  • Operating System: Debian 9
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: 128
  • NodeJS Version: 8.11.4
  • MongoDB Version: 4.0.12
  • Proxy: nginx 1.17
  • Firewalls involved: no

Any additional Information

  • VPS RAM: 512M
  • CPU: 1