I've a lot of Raspberry Pi clients, which I've initialized with a 4.5.0 Node JS version, using the following lines of code:
wget https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-armv7l.tar.gz tar -xvf node-v4.5.0-linux-armv7l.tar.gz cd node-v4.5.0-linux-armv7l cp -R * /usr/local/ // This copies the following files: // bin CHANGELOG.md include lib LICENSE README.md share
Times changed and I noticed that meanwhile you install and manage Node using these lines of code:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs // Do other stuff like rebuilding, etc.
I'd like to update all clients deploying a script, which leads us to my point. When I execute the update on my Test-Pi
node -v returns
v4.5.0 anyways, I think due to the fact that the old version is still located in
I'd like to know, what's the best solution to update Node in my case and to be able to update / manage Node better in the future? Just remove
node / npm files from the folders and run the update script?