Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 517 Bytes

nodejs.md

File metadata and controls

21 lines (12 loc) · 517 Bytes

Install node version manager: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

https://github.com/nvm-sh/nvm

add nvm to path: nano ~/.zshrc add source ~/.nvm/nvm.sh on top of the file

reopen shell and test with: command -v nvm

install nodejs + npm: nvm install --lts

list remote versions: nvm ls-remote

install version: nvm install 14 --lts

list local versions: nvm list

set default version: nvm use <version>

uninstall version: nvm uninstall <version>