I’ve been searching through this forum for days now trying figure out this issue. When trying to update the webUI I get an error from npm install, specifically for the posix build process. It spits out error code ELIFECYCLE and the error output references thats class v8 has no member class ForceSet. It also throws a ton of warnings about the nan nodejs package.
make: Entering directory ‘/usr/games/minecraft/node_modules/posix/build’
In file included from …/node_modules/nan/nan.h:190,
…/node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’:
…/node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
[PAGES OF NAN RELATED WARNING MESSAGES HERE]
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_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
gyp ERR! System Linux 4.16.8-1-ARCH
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/games/minecraft/node_modules/posix
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstname.lastname@example.org install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR! Failed at the email@example.com 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/2018-05-11T03_17_31_779Z-debug.log
Any insight would be greatly appreicated. I first noticed this issue after I upgraded to Linux 4.16. I’ve followed the instructions from the wiki but it always gets stuck at this step. The webUI starts and I can login to it but it freezes after a few seconds.
You’re in luck today. For I have encountered this same issue just recently and I was able to fix it.
For some reason MineOS doesn’t play nice with the most recent version of nodejs.
Firstly, uninstall your current version of node and npm. Then install NVM (Node Version Manager) and follow the instructions on how to install node v8.11.1 which is the latest LTS version. I believe the command is simply nvm install 8.11.1. After that, you should be able to just do an npm install in your mineos directory and everything should be back to normal.
Oh I forgot to mention one thing. Make sure after installing node v8.11.1 run type node to print the location of the binary to the terminal. Make sure you create a symlink for it at /usr/bin/node
MineOS was designed with Node when Nodejs was still in heavy development, and–in fact–forked into two major projects. Eventually both projects were merged together and became NodeJS 4.0, the first Long Term release.
Naturally the higher, more recent versions have great appeal, so they get installed often, but many of the modules I’ve come to depend on failed to update to the new 6.x line–and in some cases would require non-trivial writing of the code.
Long story short, in the near future I still expect the 4.x LTS release to be the targeted node. I’m not sure when life will permit me the amount of time required to get this thing fully up to spec with the rapidly developing API.
Installing node v8.11.1 worked! Thanks for the advice It threw out this info while building but my server is back up and running again at least.
make: Leaving directory ‘/usr/games/minecraft/node_modules/userid/build’
added 545 packages from 429 contributors in 10.255s
[!] 70 vulnerabilities found [1409 packages audited]
Severity: 40 Low | 18 Moderate | 12 High
Run npm audit for more detail
@hexparrot that totally makes sense, I know Arch has a bad rep sometimes as pushing updates for things before they are quite ready and I guess nodejs is one of those things. Thanks for the help, really appricate that you take the time to support your users
So I’m having this problem with a new install on Ubuntu server 16.04.4. I think. I’m getting an error with NPM anyway. I’ve tried doing it both the way the wiki instructs, and with the recommendation above. Still getting an error.
So now I’m really confused. After literally 14 hours straight of working on this(4-5 clean installs of Ubuntu)(granted I’m not Linux genius), I got it.
NO idea why, but when I ran apt upgrade as part of my OS install, some package was breaking it. I just did a clean install where the only thing I did was static IP and SSH, then ran all the commands and it worked flawlessly. Don’t ask me. But I’m tired now.