Skip to content

How can I make reinstallation of nodes easier

Julian Knight edited this page Feb 13, 2017 · 4 revisions

From several recent Google Group discussions...

There shouldn't be anything in the ~/.node-red tree that is root/root owned. (unless ~ refers to the root user of course!)

Personally, I'd note what nodes I needed to have installed, I'd delete the ~/.node-red/node_modules folder then reinstall the modules correctly (non-root).

See the notes elsewhere about making this an easier process for the future by doing something like:

cd ~/.node-red npm init -y

And then either editing the ~/.node-red/package.json file to include all the required nodes or by installing them with:

npm install node-red-contrib-xxxxxx --save

I think that Nick & Dave may have made this standard for the next release.

It makes it easy to throw away any/all of the installed packages and reinstall them with a simple:

cd ~/.node-red npm install

This can be especially useful when Node.JS gets updated.

Clone this wiki locally