I'm using an external module - ping - npm in a function node which has worked fine so far, but since v2.0.0 (v2.0.1, v2.0.2 or v2.0.3 - can't be sure) I've hit a problem.
I get the error in debug;
If I check .node-red/node_modules, the ping module is not installed, but it is listed in .config.modules.json (having being moved from externalModules during the update)
That is an odd combination of things. For it to be listed in your package.json, the npm install must have completed. So for it to not be in the node_modules directory is odd. Can't readily explain that.
Rolled back to node v12 - error persists
Rolled back to node-RED v2.0.2 - error persists
Rolled back to node-RED v2.0.1 - error persists
Ran npm update in .node-red - module now installed OK
Updated to node-RED v2.0.3 & node 14 via script - module still installed & no error msg.
So working with Monaco is refreshing, one thing that has changed (as it seems) that the key combination CTRL+ENTER will not close the dialog (as in all dialogs), but will just add a carriage return to the edited code...this habit in quite rooted...is there anything that we can do about it?
After upgrate 1.3 to 2.0.3 having message "type_already_registered".
I know that now it is "filter" node but how i can remove registered rbe type from node red without removing RBE nodes from flows?
After upgrading to version 2.0.3, at first glance, the performance has improved greatly! Deploy became MUCH faster with the same number of nodes - very impressive!
Error loading settings file: /home/pi/.node-red/settings.js
Error: The module '/home/pi/.node-red/node_modules/i2c-bus/build/Release/i2c.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at bindings (/home/pi/.node-red/node_modules/bindings/bindings.js:112:48)
at Object.<anonymous> (/home/pi/.node-red/node_modules/i2c-bus/i2c-bus.js:4:32)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
nodered.service: Succeeded.
You need to make sure you run npm rebuild in the your /home/pi/.node-red directory to makes sure all the nodes with native components are updated to match the new version of NodeJS you are running.
But in this case it looks like you have downgraded your version of NodeJS. Exactly how did you do the upgrade.
I did the upgrade from the script on the node red org page: bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
Also tried the npm rebuild too.... to no avail... (I don't think I was in the .node-red directory - It didn't return any errors though...)
Ok, will do.... Will have to wait a bit though, I have just hit into the sunset hours where NR controls the load on my inverter quite strictly.... Will give it a go tomorrow!!
(A good reason to back up the system before poking it with an "engineering stick")
Lol..... that would mean about an additional 6 units or so.... No, more than that!! (Media players, gamers, controllers, octopi'ses, routerpi'ses etc).... I'll just stick to backing up the cards!!