
- #Upgrade node js windows npm install
- #Upgrade node js windows npm manual
- #Upgrade node js windows npm upgrade
- #Upgrade node js windows npm license
#Upgrade node js windows npm install
If you used Chocolatey () to install Node.js, be sure to check if npm is removed from the choco\bin directory by running the following command: where.exe npm.
#Upgrade node js windows npm upgrade

#Upgrade node js windows npm license
For details, please consult the LICENSE file. This tool was made with :heart: for npm and Node, but it is provided "as is", without warranty of any kind, expressed or
#Upgrade node js windows npm manual
If you run into trouble and need npm upgraded as soon as possible, please follow the manual instructions. There are a bunch of Windows versions, hundreds of different ways to install Node and npm, and it's likely that this script won't work with a few of them. To see debug output, set a DEBUG environment variable ( $env:DEBUG="npm-windows-upgrade") Issues & Support To disable the initial prompt, pass -no-prompt. To override the internet connection check, pass -no-dns-check. To manually specify a version to install, pass the version parameter: npm-windows-upgrade -npm-version 5.5.0 npm-windows-upgrade -npm-path "C:\nodejs" A common issue is that the script fails to find npm (and therefore doesn't know where to install it) - in that case, pass the location manually. If you have trouble with the script, consider adding parameters manually. v, -npm-version (Optional) If passed, npm will be upgraded/downgraded to the specified version n, -npm-path (Optional) If passed, npm will be upgraded in the specified location p, -no-spinner Disable the spinner animation e, -no-execution-policy-check Disable the PowerShell execution policy test d, -no-dns-check Disable the internet connectivity test Options: -h, -help Output usage information Choose the one you want to install and let it do its thing! Advanced Usage The tool will show you a list of all the published and available versions of npm (including pre-release and beta versions). Want to just install the latest version? Sure: npm-windows-upgrade -npm-version latest For Node versions lower than 4.0, please use for Node versions lower than 6.0, please use npm install -global -production npm-windows-upgrade Note: This tool requires at least Node v6.

Then, to install and use this upgrader tool, run the following command (also from an elevated PowerShell or cmd.exe). Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force To run PowerShell as Administrator, click Start, search for PowerShell, right-click PowerShell and select Run as Administrator.

This is a small tool made with :heart: for npm and Node, reducing the process to a simple command.įirst, ensure that you can execute scripts on your system by running the following command from an elevated PowerShell. Upgrading npm on Windows requires manual steps to ensure that PowerShell/CMD find the new version of npm.
