maierfelix / POGOserver

Pokemon GO server emulator
GNU General Public License v3.0
459 stars 197 forks source link

Incompatible with nodejs 6.9.1 and npm 3.10.8 #304

Open LaxSlash opened 7 years ago

LaxSlash commented 7 years ago
root@7b5ac9800d0d:/POGOserver# npm run boot

> POGOServer@0.6.1 boot /POGOserver
> npm run babel-node -- ./src/index.js

> POGOServer@0.6.1 babel-node /POGOserver
> babel-node --presets=es2015 "./src/index.js"

sh: 1: babel-node: not found

npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "babel-node" "--" "./src/index.js"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! POGOServer@0.6.1 babel-node: `babel-node --presets=es2015 "./src/index.js"`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the POGOServer@0.6.1 babel-node script 'babel-node --presets=es2015 "./src/index.js"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the POGOServer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel-node --presets=es2015 "./src/index.js"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs POGOServer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls POGOServer
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR!     /POGOserver/npm-debug.log

npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "boot"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! POGOServer@0.6.1 boot: `npm run babel-node -- ./src/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the POGOServer@0.6.1 boot script 'npm run babel-node -- ./src/index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the POGOServer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run babel-node -- ./src/index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs POGOServer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls POGOServer
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR!     /POGOserver/npm-debug.log
root@7b5ac9800d0d:/POGOserver#

No npm-debug.log file was created. Installed right from the included Dockerfile and as instructed in the README.

npm Version: 3.10.8 NodeJS Version: 6.9.1

Node version 6.5.0 with npm 3.10.3 works.

LaxSlash commented 7 years ago

Okay. Apparently this only works with the Docker version.... running it directly in Ubuntu 14.04 still refuses to install/find babel-node.

DracoMilesX commented 7 years ago

You need to run npm install first some one forgot to add that part when modifying the readme.

And none the least the Dockerfile is kinda outdated at this moment because of several changes done to the server.