owenashurst / agar.io-clone

Agar.io clone written with Socket.IO and HTML5 canvas
MIT License
2.88k stars 1.12k forks source link

Can't start the game on VPS #508

Closed dutchtom91 closed 6 years ago

dutchtom91 commented 6 years ago

Hi,

I have a VPS with Debian 8.0. I did this steps

sudo apt-get install npm -y && sudo apt-get install nodejs -y && sudo apt-get install git

After a few minutes the installation was ready. Then I did the steps provides on the wiki page:

git clone https://github.com/huytd/agar.io-clone.git cd agar.io-clone npm install -g gulp npm install gulp run

But when I run 'Gulp Run'. I get the follow message:

root@agar:/var/xxxxx/agar.io-clone# sudo gulp run /usr/bin/env: node: No such file or directory root@agar:/var/xxxxx/agar.io-clone# gulp run /usr/bin/env: node: No such file or directory

I also get some warnings when I started 'SUDO NPM INSTALL'.

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN engine get-stdin@5.0.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN optional dep failed, continuing fsevents@1.1.2
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN engine deep-extend@0.4.2: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

This is the error I get when I run 'NPM START'

root@agar:/var/xxxxx/agar.io-clone# npm start

> agar-clone@1.0.0 start /var/xxxxx/agar.io-clone
> gulp run

/usr/bin/env: node: No such file or directory

npm ERR! agar-clone@1.0.0 start: `gulp run`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the agar-clone@1.0.0 start script.
npm ERR! This is most likely a problem with the agar-clone package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp run
npm ERR! You can get their info via:
npm ERR!     npm owner ls agar-clone
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /var/xxxxx/agar.io-clone
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/xxxxx/agar.io-clone/npm-debug.log
npm ERR! not ok code 0
dutchtom91 commented 6 years ago

Ok, I found the issue. The version of NodeJS is to old.

I used this to install the last version: https://github.com/nodesource/distributions#installation-instructions