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.

React開発環境構築(MacOS Mojava)

Posted at

#Homebrewのインストール

Homebrew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

###nodebrewのインストール

$ brew install nodebrew

$ nodebrew -v
nodebrew 1.0.1

$ nodebrew ls-remote
#インストール可能なnodeのバージョンが表示される

###nodeのインストール

$ nodebrew install-binary stable

インストールしnodeの有効化

$ nodebrew ls
v12.7.0

current: none


$ nodebrew use v12.7.0
v12.7.0

current: v12.7.0

##環境パスを通す

$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bash_profile

##nodeのバージョン確認

$ node -v
v12.7.0

##create-react-appをインストール

$ npm install -g create-react-app
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?