0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

nodebrewを利用したnodeのインストール

Posted at

Homebrewを使ってインストール。

$ brew install nodebrew
  • バージョン確認
$ nodebrew -v
  • セットアップコマンド。出力されたパスを通す。
$ nodebrew setup

# Fetching nodebrew...
# Installed nodebrew in $HOME/.nodebrew
# 
# ========================================
# Export a path to nodebrew:
# 
# export PATH=$HOME/.nodebrew/current/bin:$PATH <= コイツを記述
# ========================================
$ vi ~/.bash_profile
  • インストール可能なバージョンの確認
$ nodebrew ls-remote
  • stableをインストール。installコマンドと比較してinstall-binaryの方が速いらしい。
$ nodebrew install-binary stable
  • インストールしたバージョンの確認。及び実行するバージョンを指定。
$ nodebrew ls
# v14.16.0
# 
# current: none
$ nodebrew use v14.16.0
  • バージョンの確認。
$ nodebrew ls
# v14.16.0
# 
# current: v14.16.0
$ node -v

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?