Posts: 2
Joined: Wed Apr 12, 2017 1:59 pm

Re: Installing newer version of NodeJS on Pi 3

Wed Jun 06, 2018 9:29 am

Thanks everyone for sharing your findings. Thanks to your help I have been able to solve this issue as well. For me the installation process still didn't remove the old version of node and npm, but I found a additional rm command that purged all files after the remove/purge command. Also a symbolic link to node had to be added, but that worked out as well. I hope this helps others as well.

My commands look as follows:

Code: Select all

[email protected]:~ $ sudo su -
[email protected]:~ # apt-get remove --purge node* npm*
[email protected]:~# sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
[email protected]:~ # curl -sL | sudo bash -
[email protected]:~# apt-get install nodejs -y
[email protected]:~# sudo ln -s `which nodejs` /usr/local/bin/node
[email protected]:~# node -v
[email protected]:~# npm -v

Return to “Other programming languages”

Who is online

Users browsing this forum: No registered users and 3 guests