Build error on Debian 9

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: recipe for target ‘Release/’ failed
make: *** [Release/] Error 1
make: Leaving directory ‘/usr/games/minecraft/node_modules/userid/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_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! errno 1
npm ERR! userid@0.3.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the userid@0.3.1 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?

I found that, for whatever reason, the /etc/apt/sources.list.d/nodesource.list file contained a URL for 10.x instead of 8.x.