UPDATE npm and Node

Asked

Viewed 523 times

-1

I’m with npm -v = 3.5.2 and node -v = v8.10.0 Operating system: ubuntu 18.04.

Can someone help me update npm and Node?

Thanks in advance, I did not succeed after several researches for update.

  • 1

    I suggest using nvm (Node version manager), the update is very quiet, without losing your old suite of packages installed from the previous version, maybe it helps you: https://answall.com/questions/388526/updater%C3%A7%C3%a3o-nodejs/388543#388543

  • 2

    The npm update is quite simple, and it boils down to just npm install -g npm@latest

  • 1

    It worked for npm, thanks vivi@linux:~$ npm -v 6.13.7

1 answer

0

I updated npm according to Isac guidance, and the Ode was solved with:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Thank you all. Kisses.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.