hexparrot / mineos-node

node.js implementation of mineos minecraft management
GNU General Public License v3.0
334 stars 170 forks source link

Installation Failure #348

Closed chokoth closed 4 years ago

chokoth commented 4 years ago

I am trying to install mineos on a new debian 10 system using the instructions here.

When I get to the step "npm install --unsafe-perm" I get the following error:

make: Entering directory '/usr/games/minecraft/node_modules/posix/build' CXX(target) Release/obj.target/posix/src/posix.o make: g++: Command not found make: *** [posix.target.mk:111: Release/obj.target/posix/src/posix.o] Error 127 make: Leaving directory '/usr/games/minecraft/node_modules/posix/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module s/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:275:12) gyp ERR! System Linux 4.19.0-8-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/games/minecraft/node_modules/posix gyp ERR! node -v v13.12.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! posix@4.2.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the posix@4.2.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-07T18_43_01_707Z-debug.log

I've attached the log mentioned to this post.

From what I could see, my only guess was somehow getting a corrupt installation of node.js. I removed that, cleaned apt-get, and re-installed it. However that seemed to make no difference.

I'm not sure if I'm missing some other dependency or if there is something going on that I'm missing.

Some system information: Debian 10 running on Virtualbox. 16gb of ram, 3 processors. All extended features within virtualbox are enabled.

Please let me know if I can provide further information.

hexparrot commented 4 years ago

gyp ERR! node -v v13.12.0

It appears you're using node 13, which is (I think) still not currently capable of correctly compiling the npm module posix.

You're also getting this error: make: g++: Command not found which suggests you did not yet successfully install apt-get install build-essential. Start with installing this, re-running and see if it succeeds with node v13. If not, you'll need to downgrade your node. Note, the instructions you linked specifically call out node 10, a version known to work with posix.

hexparrot commented 4 years ago

I successfully installed MineOS on Debian 10 using these slightly revised instructions:

https://minecraft.codeemo.com/mineoswiki/index.php?title=MineOS-node_(apt-get)_(Debian10)

Basic changes include using a more modern Java (openjdk-11-jre-headless) and ensuring rsync is installed. Otherwise, everything else is the same. There is no need to start anew, you should be able to follow these instructions to get up to spec with a working system.

chokoth commented 4 years ago

Wow, fast response! Thank you!

You put up the installation instructions while I was working on this, apparently. Thanks again!

I'll work on following those, and either post back or close the issue.

chokoth commented 4 years ago

Just want to note. I did have to restart, actually had to completely re-install the system (it was a virtual machine, nothing lost) in order to get a profile list. I assume it's related to running node 13, but I can't be sure. Thank you again for all your work on this!