You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mike Blackstock edited this page Nov 7, 2017
·
2 revisions
Status: work in progress
Note: if you are using the preinstalled version
on a Raspberry Pi, please refer to these instructions for upgrading a Pi.
If you are using Windows do not use sudo when executing these commands.
Currently we require the use of npm version 2 or later, please check which version you
have installed by running the command npm -v before upgrading. If necessary run
sudo npm i -g npm@3.x
hash -r
If you have installed Node-RED as a global npm package, you can upgrade to the
latest version with the following commands:
You will also need to rebuild any nodes that have binary dependancies. If you
installed them in the recommended ~/.node-red directory, you can do this by:
cd ~/.node-red
npm rebuild
You will then need to restart Node-RED.
Note: the reason for using the --unsafe-perm option is that when node-gyp tries
to recompile any native libraries it tries to do so as a "nobody" user and then
fails to get access to certain directories. This causes the nodes in question
(eg serialport) not to be installed. Allowing it root access during install
allows the nodes to be installed correctly during the upgrade.