-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start server on CentOS7 #31
Comments
Seems like not a pogoserver related issue |
@maierfelix any suggestions? So I am able to install node-babel, I'm not an expert, but I don't know if it's the same package just named differently because of distro. I tried symlinking it to babel-node, which removes the error, but just hangs like this: `> POGOServer@0.2.7 start /var/www/MyDOMAIN/POGOserver
[nodemon] 1.10.0 |
Here is a step by step CentOS-7 Install guide 1st Install dependencies and updatesudo vim /etc/yum.repos.d/mongodb.repo you can also use nano if you prefer over vim of course using:sudo yum -y install nano paste the below[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1 sudo yum -y update 2nd Update Node & npmwget https://github.com/taaem/nodejs-linux-installer/releases/download/v0.3/node-install.sh && sudo sh node-install.sh Reboot to apply new NodeJS versionsudo reboot 3rd Download & install POGOserver & start MongoDBsudo systemctl start mongod NOTEThe problem you are having is you are using the epel versions of NodeJS & npm which are out of date. rm -rf node_modules && npm install as the node_modules will be for the out of date version. |
For some reason the steps provided isn't installing the latest node version. Installed nodejs manually from node repos and it worked. Thanks! |
@xomikronx you are right, just tested this on a fresh VM, if you run the steps in sequence then it doesn't work, however rebooting after running the update for NodeJS works. Updated the above to reflect this. |
Unable to start server. It's looking for node_modules/babel-node/package.json which doesn't exist.
`> POGOServer@0.2.7 start /var/www/MYDOMAIN/POGOserver
[nodemon] 1.10.0
[nodemon] to restart at any time, enter
rs
[nodemon] watching: .
[nodemon] starting
npm run babel-node ./src/index.js
npm ERR! Error: ENOENT, open '/var/www/MYDOMAIN/POGOserver/node_modules/babel-node/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR! System Linux 3.10.0-327.28.2.el7.x86_64
npm ERR! command "node" "/bin/npm" "run" "babel-node" "./src/index.js"
npm ERR! cwd /var/www/MYDOMAIN/POGOserver
npm ERR! node -v v0.10.42
npm ERR! npm -v 1.3.6
npm ERR! path /var/www/MYDOMAIN/POGOserver/node_modules/babel-node/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/MYDOMAIN/POGOserver/npm-debug.log
npm ERR! not ok code 0
[nodemon] app crashed - waiting for file changes before starting...`
The text was updated successfully, but these errors were encountered: