Node-red-node-serialport Update failed

Hello all!

How can I update node-red-node-serialport ?
NR is running on Windows.

2022-03-28T07:19:29.452Z Install : node-red-node-serialport 1.0.1

2022-03-28T07:19:29.758Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-serialport@1.0.1
2022-03-28T07:19:36.152Z [err] npm 
2022-03-28T07:19:36.152Z [err] ERR! code ENOTSUP
2022-03-28T07:19:36.153Z [err] npm ERR! 
2022-03-28T07:19:36.153Z [err] notsup Unsupported engine for @serialport/bindings-cpp@10.7.0: wanted: {"node":">=12.17.0 <13.0 || >=14.0.0"} (current: {"node":"13.8.0","npm":"6.13.6"})
2022-03-28T07:19:36.153Z [err] npm ERR! notsup Not compatible with your version of node/npm: @serialport/bindings-cpp@10.7.0
2022-03-28T07:19:36.153Z [err] npm ERR! notsup Not compatible with your version of node/npm: @serialport/bindings-cpp@10.7.0
2022-03-28T07:19:36.153Z [err] npm ERR! notsup Required: {"node":">=12.17.0 <13.0 || >=14.0.0"}
2022-03-28T07:19:36.153Z [err] npm ERR! notsup Actual:   {"npm":"6.13.6","node":"13.8.0"}
2022-03-28T07:19:36.159Z [err] 
2022-03-28T07:19:36.159Z [err] npm ERR! A complete log of this run can be found in:
2022-03-28T07:19:36.159Z [err] npm ERR!

Version 13 of node is not supported. Upgrade to v14 or v16

Ok! Sorry for asking stupid questions, but what exactly should i update and how?

Update nodejs. You are currently running version 13. This is not supported. Try updating two version 14 or version 16. Search the internet for install node.js on Windows, there are tons of tutorials.

After node js is updated, you can try installing the serial node again.

1 Like

:grinning: Thanks!

After upgrading nodejs you should go into your .node-red folder and run
npm rebuild
which will rebuild any nodes that need it.
Then restart node-red.

1 Like

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