简体   繁体   中英

How to upgrade nodejs to latest version

I'd like to upgrade from the LTS to 8.x. I need to integrate this into an existing project. What's the best way to do that so that my project continues to work no problems after the upgrade? (I'm on windows).

Since you are using windows it is easy to upgrade to the latest node js version.

Just reinstall node from the .msi in Windows from the node website.

That will do the trick.

Your project will not be affected after the upgradations.

Also, npm will be upgraded as well.

It's safe to do the following after the upgradations.

npm cache clean
npm update -g

EDIT

I just want to add the use of nvm that manages multiple node versions without any conflicts to each other versions. You could look into it here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM