Installation
setup global path and cache path
npm config set prefix "D:\ProgramData\nodejs\node_global" npm config set cache "D:\ProgramData\nodejs\node_cache"
What
npm config set does is actually modifying the ~/.npmrc fileinstall a package globally, for instance,
yarnnpm install --global yarn
Add
D:\ProgramData\nodejs\node_global to the environmental variablecheck installation
yarn --version
Node version control with nvm
nvm ls # list out all installed node versions nvm current # check current active node version nvm use 20 # activate version 20
nvm
nvm-sh • Updated Nov 5, 2025
Packages
What is the @ in the package name?
pnpm
pnpm
pnpm • Updated Nov 5, 2025

