Before anyone suggests npm rebuild
or npm install
. I've gone that route, npm rebuild
leaves the problem. And npm audit fix --force
hangs on the g++ serialport compile.
Okay I've removed the ${HOME}/.node-red/node_modules
dir. I proceed to ${HOME}/.node-red
and do my npm install node-red@1.2.9
. I start node-red -v
and I'm greeted by this:
8 Mar 19:34:08 - [warn] [node-red-node-serialport/serialport] Error: The module '/home/njc/.node-red/node_modules/@serialport/bindings/build/Release/bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 88. This version of Node.js requires
NODE_MODULE_VERSION 91. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
I'm going a bit nuts, I'm trying to fix the node-red-node-serialport issue. I removed it from my node-red when I kept getting version errors.
How do I go about getting version 88? And why does npm keep installing version 99?
Also why does 1.2.8 get installed when I do this:
npm install node-red@1.2.9
Edit: Figured out the 1.2.8, seems that the global npm had 1.2.8 installed.