2 min read
Installing and Updating Versions
Before defaulting to or , consider using .
NPM​
NPM Download​
NPM Updates​
npm --version- Check the current installed version of npmnpm install -g npm- Install globally the latest stable version of npm
Note - for any issues with the above, follow the 'Upgrade with npm-windows-upgrade' part of the this link
Yarn​
Yarn Download​
npm install --global yarn- (https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable)
Yarn Updates​
yarn --version- Check the current installed version of yarnnpm install -g yarn@v1.22.19- Install globally a specific version of yarn (check Yarn Windows Releases for the latest version)
PNPM​
PNPM Download​
npm install -g pnpm- (https://pnpm.io/)
PNPM Updates​
pnpm --version- Check the current installed version of pnpmnpm install -g pnpm@v1.22.19- Install globally a specific version of pnpm (check PNPM Releases for the latest version)
PNPM Documentation​
- Link to all documentation
- Introduction article
Node.js​
Node Commands​
The following use :
node --version- Check the current installed version of nodenvm ls- Find out which versions of Node.js you may have installed and which one of those you're currently usingnvm ls available- List all versions of Node.js available for installationnvm install 8.1.0- Install a specific version of Node (check node.js for the latest version)
Note - you can also use
npm install -g node@v16.18- Install globally a specific version of node
nvm use 4.2- Switch between the installed versions on your machine- Re-run
node --versionto check the new version is being used
Note - if after using
nvm use, you find yourself still using the old version, you can fix this by deleting theC:\Program Files\nodejsfolder and then runningnvm useagain (ref 3)
References
- How Do I Update NodeJS
- NVM Windows Releases - NVM latest release - use "nvm-setup.exe"
- nvm use does not switch node versions