Install & Upgrade Chocolatey => read here: https://chocolatey.org/install
1. Install NodeJS
Open CMD and the following command:
choco install nodejs -y
It will install latest NodeJS version and npm together.
For installing long term support (LTS) version of NodeJS, run the command:
choco install nodejs-lts -y
2. Upgrade NodeJS
Run the command:
choco upgrade nodejs -y
It will upgrade to latest NodeJS + npm. In case you want to upgrade npm only, let run PowerShell as Administrator and execute below commands:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -ForceOr
npm install -g npm-windows-upgrade
npm-windows-upgrade
npm-windows-upgrade -p -v latest
3. Uninstall NodeJS
Run the command:
choco uninstall nodejs -y
I love chocolatey ❤