Search code examples
node.jsupgrade

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).


Solution

  • 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