No Problem! The joy of the open source community is the ability to actually get useful help, and learn something along the way
I’m leaning towards this being a very Arch specific problem as far as trying to make progress on it, as running the npm install -g userid
command mainly returns this error set:
gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/techzerker/.nvm/versions/node/v8.0.0/lib/node_modules/userid/build' gyp ERR! System Linux 5.0.4-arch1-1-ARCH gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /home/techzerker/.nvm/versions/node/v8.0.0/lib/node_modules/userid gyp ERR! node -v v11.12.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1
Despite following the Arch Wiki’s themselves for how to permanently force a specific version of NodeJS, in this case, trying 8.0.0, and yet you’ll see above, which wasn’t the case in my earlier attempts, if I build with the -g
flag, then it goes back to the latest v11.12.0 build, where as without -g, then I get my forced v8.0.0 NodeJS.
The MineOS.log file has since changes to reflect that as well, where before it was v.8.0 and failing because it was looking at the /Debug path and their was no /Build path version, now it’s referring to v11.12 (and still looking at /Debug):
{"date":"Thu Mar 28 2019 12:03:19 GMT-0400 (Eastern Daylight Time)","process":{"pid":15340,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/bin/node","version":"v11.12.0","argv":["/usr/bin/node","/usr/games/minecraft/webui.js","start"],"memoryUsage":{"rss":62562304,"heapTotal":18329600,"heapUsed":14801264,"external":1297574}},"os":{"loadavg":[0.1669921875,0.18994140625,0.08349609375],"uptime":142957},"trace":[{"column":15,"file":"internal/modules/cjs/loader.js","function":"Module._resolveFilename","line":649,"method":"_resolveFilename","native":false},{"column":25,"file":"internal/modules/cjs/loader.js","function":"Module._load","line":575,"method":"_load","native":false},{"column":19,"file":"internal/modules/cjs/loader.js","function":"Module.require","line":705,"method":"require","native":false},{"column":16,"file":"internal/modules/cjs/helpers.js","function":"require","line":14,"method":null,"native":false},{"column":19,"file":"/usr/games/minecraft/node_modules/userid/lib/userid.js","function":null,"line":5,"method":null,"native":false},{"column":30,"file":"internal/modules/cjs/loader.js","function":"Module._compile","line":799,"method":"_compile","native":false},{"column":10,"file":"internal/modules/cjs/loader.js","function":"Module._extensions..js","line":810,"method":".js","native":false},{"column":32,"file":"internal/modules/cjs/loader.js","function":"Module.load","line":666,"method":"load","native":false},{"column":12,"file":"internal/modules/cjs/loader.js","function":"tryModuleLoad","line":606,"method":null,"native":false},{"column":3,"file":"internal/modules/cjs/loader.js","function":"Module._load","line":598,"method":"_load","native":false}],"stack":["Error: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Debug/userid.node'"," at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)"," at Function.Module._load (internal/modules/cjs/loader.js:575:25)"," at Module.require (internal/modules/cjs/loader.js:705:19)"," at require (internal/modules/cjs/helpers.js:14:16)"," at Object.<anonymous> (/usr/games/minecraft/node_modules/userid/lib/userid.js:5:19)"," at Module._compile (internal/modules/cjs/loader.js:799:30)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)"," at Module.load (internal/modules/cjs/loader.js:666:32)"," at tryModuleLoad (internal/modules/cjs/loader.js:606:12)"," at Function.Module._load (internal/modules/cjs/loader.js:598:3)"],"level":"error","message":"uncaughtException: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Debug/userid.node'","timestamp":"2019-03-28T16:03:19.815Z"} {"level":"info","message":"Starting up server, using commit: b28c5be fw.ignore for all skip_dirs\n","timestamp":"2019-03-28T16:03:20.659Z"} {"level":"info","message":"Starting up server, using commit: b28c5be fw.ignore for all skip_dirs\n","timestamp":"2019-03-29T20:00:42.527Z"}
Note, that this isn’t critical to get working, I’m only running a single server at this point migrating to this VPS, and I can always run it like it currently is just straight from command line. If I do that, when I have time I’ll build an matching offline VM with Arch, and see if I can install with the same steps and replicate the problem the same way again.