How to Update Node.js and npm on Windows

As of now, Node.js is a fast-moving project and Minor updates come out every few weeks to boost stability and security among all version branches.The process of installing Node.js on Windows is almost the same as the process to upgrade Node.js on Windows.

Install Node.js

    1. First we need to download node installer from the official website: Download the latest recommended LTE version.
    2. After the download has completed, double-click the .msi package. As of this writing, the MSI is node-v8.11.2-x64.msi.
    3. Click Run.
    4. Click Next.
    5. Check I accept the terms in the License Agreement. Click Next.
    6. Click Next.
    7. Click Next.
    8. Click Install.
    9. Enter your Administrator password, if prompted.
    10. Click Finish.

Upgrade NPM Packages

Run Command Prompt as Administrator
Navigate to the folder containing nodejs (eg. C:\Program Files\nodejs)

Run Powershell -ExecutionPolicy Unrestricted
Run npm-windows-upgrade

This will show list of versions available to install. Just select your desired version by moving up/down key & Press Enter.

This’ll update your npm
To check the current version of npm

Run npm --version
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkedin
Share On Pinterest

Be the first to comment

Leave a Reply

Your email address will not be published.