Node Download
Option 1. official web site
Latest: https://nodejs.org/ko/download/
(MacOS) 13.14.0: https://nodejs.org/download/release/v13.14.0/node-v13.14.0.pkg
...
Option2. Homebrew
brew install node
...
NVM: Node Multi Version Control
NVM Install
NVM Download
Code Block |
---|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash |
Make .bash_profile & Set PATH
Code Block |
---|
vi ~/.bash_profile # attach on the bottom export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm |
check version
nvm --version
Install Node specific version
LTS: nvm install node
13.14.0: nvm install v13.14.0
Use Node specific version
nvm use {version}
Check Node version
node --version
...
Yarn install
npm install yarn -g
Cross-env
yarn add cross-env -g
pm2
yarn add pm2 -g