Problems installing in a Centos 7 VPS server

Hi, I am experiencing some issues installing in Centos 7. Unfortunately my hosted server does not support docker or snap, so I need the bare installation.

Everything seems to be ok as per until I reach the step, here I have a warning
Rocket.Chat Documentation - Deploying Rocket.Chat on Centos 7
Rocket.Chat user, admin, API, integration, plugin and contributing documentation.
meteor-dev-bundle@~install: cannot run in wd %s %s (wd=%s) meteor-dev-bundle@ node npm-rebuild.js /opt/Rocket.Chat/programs/server
if I ignore that and move on, later on step I get a

root@vps2 [/opt/Rocket.Chat]# node main.js
Meteor requires Node v8.0.0 or later.

and doing a node --version I get v6.12.3
any suggestion on how to resolve it?

this was a path problem, now resolved - the version installed with ‘n’ wasn’t being used

Sorry, I’m experiencing the same exact problem. Can you please give some other details about the solution?

/usr/local/bin/node main.js

while this doesnt fully fix the problem when you create your systemd script as long as you put it like this:
ExecStart=/usr/local/bin/node /opt/rocket/Rocket.Chat/main.js
you should be fine

Thank you very much!

I have same problem in debian,

root@sp2lnx1:~/rocketchat/Rocket.Chat/programs/server# npm install
npm WARN lifecycle meteor-dev-bundle@~install: cannot run in wd %s %s (wd=%s) meteor-dev-bundle@ node npm-rebuild.js /root/rocketchat/Rocket.Chat/programs/server
updated 1 package in 0.936s
root@sp2lnx1:~/rocketchat/Rocket.Chat/programs/server# node ../../main.js

Error: MONGO_URL must be set in environment
	at Object.<anonymous> (packages/mongo/remote_collection_driver.js:36:11)
	at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
	at new Collection (packages/mongo/collection.js:97:40)
	at new AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
	at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
	at server_main.js (packages/accounts-base/server_main.js:9:12)
	at fileEvaluate (packages/modules-runtime.js:343:9)
	at require (packages/modules-runtime.js:238:16)
	at /root/rocketchat/Rocket.Chat/programs/server/packages/accounts-base.js:2012:15
	at /root/rocketchat/Rocket.Chat/programs/server/packages/accounts-base.js:2019:3
	at /root/rocketchat/Rocket.Chat/programs/server/boot.js:411:36
	at Array.forEach (<anonymous>)
	at /root/rocketchat/Rocket.Chat/programs/server/boot.js:220:19
	at /root/rocketchat/Rocket.Chat/programs/server/boot.js:471:5
	at (/root/rocketchat/Rocket.Chat/programs/server/profile.js:510:12)
	at /root/rocketchat/Rocket.Chat/programs/server/boot.js:470:11

@alirezaimi to your problem see Problems installing 0.70 in debian

1 Like