I’ve been following the installation guide for Debian linux and have run into the following issue. When I get to the command
npm install --unsafe-perm, I’m getting this error:
userid.target.mk:101: recipe for target ‘Release/obj.target/userid/src/userid.o’ failed
make: *** [Release/obj.target/userid/src/userid.o] Error 1
make: Leaving directory ‘/usr/games/minecraft/node_modules/userid/build’
gyp ERR! build error
gyp ERR! stack Error:
makefailed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.9.0-9-amd64
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/userid
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! email@example.com install:
npm ERR! Exit status 1
npm ERR! Failed at the firstname.lastname@example.org 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/2019-08-17T06_18_05_033Z-debug.log
It seems that ‘userid’ is failing to build.
This may have to do with my Node version, which I cannot convince to be v8.x:
elijah@ELIJAH-PC:/usr/games/minecraft$ node -v
What am I doing wrong?