iKlem / linux-screeps-server-manager

Linux Screeps Server Manager
MIT License
9 stars 3 forks source link

Installation error with other node version #6

Open Commandelicious opened 7 years ago

Commandelicious commented 7 years ago

First of: I had the same problem with installing screeps manually. The script works like a charm until everything breaks as shown here:

npm ERR! Linux 3.4.39-BPI-M3-Kernel npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i" "-S" "screeps" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! @screeps/driver@2.2.0 install: node-gyp rebuild -C native npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the @screeps/driver@2.2.0 install script 'node-gyp rebuild -C native'. 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 @screeps/driver package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild -C native npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs @screeps/driver npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls @screeps/driver npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/abti/screeps/linux-screeps-server-manager-master/npm-debug.log

Aditional information: 19:51:28 usernamei@bananapi ~/screeps/linux-screeps-server-manager-master $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04 LTS Release: 16.04 Codename: xenial

19:54:39 username@bananapi ~/screeps/linux-screeps-server-manager-master $ uname -a Linux bananapi 3.4.39-BPI-M3-Kernel #1 SMP PREEMPT Tue May 3 13:47:01 UTC 2016 armv7l armv7l armv7l GNU/Linux

However, before I sent this I tried again and followed after some googling this: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

apt-get told me node was up to date but it was version 4 and not 6.

Maybe this will help improve the wonderful script you produced :) I just have to figure out where to put the steam api key -.-

iKlem commented 7 years ago

Hi, thanks for the feedback. The problem of node version with package manager is very annoying and the only thing i can do is maybe to show a message before installation, when the user launch the install-deps command and add some text in the readme file. I'll working on this when i have time and maybe push an update for this weekend (UTC+1 time).

Commandelicious commented 7 years ago

The worst is that my box told me it was up to date with version 4. Still: Your script made it work. Well, gave me the tip I needed.