Summerfly
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 https://deb.nodesource.com/setup_8.x | sudo bash -
[email protected]:~# apt-get install nodejs -y
[email protected]:~# sudo ln -s `which nodejs` /usr/local/bin/node
[email protected]:~# node -v
v8.11.2
[email protected]:~# npm -v
5.6.0

Return to “Other programming languages”

Who is online

Users browsing this forum: No registered users and 3 guests