Read the statement by Michael Teeuw here.
Unable to update to latest version of Node.js and npm
-
I’ve used this to update npm:
npm install npm@latest -g
-
@bminer1 yes, they split the npm install off from the node install… so you have to do two now
sudo apt-get install npm
then sudo npm i -g npm ( as it updated the usr/lib folder) -
@EdO he doesn’t have npm yet… see my post above
-
This website was exactly what i needed to get the latest version and it worked.
https://www.instructables.com/id/Install-Nodejs-and-Npm-on-Raspberry-Pi/
-
@bminer1 in the future if you use the installer, it will handle this
-
I went through all of the avenues and this was the only way it stuck.
I am creating a second MM Pi so ill try it again on this Pi. -
@bminer1 use the new installer script
see https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer