Check if any of the required components, Chocolatey package manager, Node Version Manager, or Node.js are already installed
choco -v
nvm -v
node -v
- Install choco if neccassary:
Invoke-WebRequest -Uri 'https://chocolatey.org/install.ps1' -Outfile 'install_chocolatey.ps1'
- Install the Node Version Manager if neccassary:
choco install nvm
- Install node with nvm:
nvm install latest
Test the installation
node -v
npm -v
npx -v
choco installs environment variables in the form of windows command shell variables e.g. %NVM_HOME%. node commands may need to be run from a command shell instead or the path variables may need to be modified.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
nvm install --lts