简体   繁体   中英

how to update npm version?

Currently I have npm version:5.5.1,but I want to update the version.As i'm trying to update,it is not updating.And I tried by uninstalling and reinstalling the node still i'm getting the same npm version of 5.5.1.

First, run PowerShell as Administrator, click Start, search for PowerShell, right-click PowerShell and select Run as Administrator.

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade

You will be prompted to select a version of NPM to install. Use arrow keys to move up and down and choose the version you want to update to and press Enter.

看这里

If your upgrade is successful, you should see something like this.

看这里

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