nodebrew で管理する
try🐶everything ~$ brew install nodebrew
try🐶everything ~$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bash_profile
try🐶everything ~$ source ~/.bash_profile
try🐶everything ~$ mkdir -p ~/.nodebrew/src * srcがないどエラーになる
try🐶everything ~$ nodebrew install-binary stable
try🐶everything ~$ nodebrew use stable
use v10.13.0
try🐶everything ~$ nodebrew ls
v10.3.0
v10.4.1
v10.13.0
current: v10.13.0
try🐶everything ~$
node.js をアップデートする
try🐶everything ~$ node --version
v10.13.0
try🐶everything ~$ nodebrew selfupdate
Fetching nodebrew...
Updated successfully
try🐶everything ~$
try🐶everything ~$ nodebrew install stable
Fetching: https://nodejs.org/dist/v12.14.1/node-v12.14.1-darwin-x64.tar.gz
######################################################################## 100.0%
Installed successfully
try🐶everything ~$ nodebrew use stable
use v12.14.1
try🐶everything ~$
try🐶everything ~$ nodebrew ls
v10.3.0
v10.4.1
v10.13.0
v12.14.1
current: v12.14.1
try🐶everything ~$
コメント