Unable to install node-red-contrib-serialport-rs485

Hi all,

I'm trieing to install node-red-contrib-serialport-rs485 om my raspberry pi (node red V 1.0.0) but i get following error:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/node-red-node-serialport-rs485 - Not found
npm ERR! 404
npm ERR! 404 'node-red-node-serialport-rs485@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-11-20T09_45_55_935Z-debug.log

Now i got it working in the past so i'm out of ideas what whent wrong.

Info about my setup:
Node red V1.0.0
NPM V6.14.8
NodeJS V10.21.0

any toughts?

Possibly because in the install command you typed node-red-node-serialport-rs485 instead of node-red-contrib-serialport-rs485

Colin

Ok strange, i just copied the command from the website,

unfortunatly i still get an error:

gypgyp ERR!ERR! build error
build error
gypgyp ERR! ERR!stack Error: make failed with exit code: 2
gypstack Error: make failed with exit code: 2
ERR! stackgyp at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR!ERR! stack at ChildProcess.emit (events.js:198:13)
stackgyp at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
ERR! gypstack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
ERR! stack at ChildProcess.emit (events.js:198:13)
gyp gypERR! stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
System Linux 5.4.72-v7+
gyp gypERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release"
ERR! gypSystem Linux 5.4.72-v7+
ERR! cwd /home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport
gyp ERR! node -v v10.21.0
gypgyp ERR!ERR! node-gyp -vcommand v5.1.0
"/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release"
gypgyp ERR! ERR!not ok
cwd /home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport
gyp ERR! node -v v10.21.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 5.4.72-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport
node-pre-gyp ERR! node -v v10.21.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/pi/.node-red/node_modules/node-red-contrib-serialport-rs485/node_modules/serialport/build/Release' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.7 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.0.7 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/2020-11-20T12_12_06_411Z-debug.log

Searching the forum for node-red-contrib-serialport-rs485 finds this thread which concluded that the node is unsupported and not installable I am sorry to say. Rs485 serialport plug in

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.