LoginSignup
0
0

More than 3 years have passed since last update.

macにnodejsの開発環境作るときにとりあえずやっておいたほうがいいこと

Posted at

macにnodejsの開発環境作るときにとりあえずやっておいたほうがいいこと

homebrew が入っていなければ実行して下さい

homebrew が入っていなければ実行して下さい。homebrewはmacを使う上で一生使うと思います

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

nodejsのインストール

この辺を参考にインストールしましょう
エラーとか起きたら、スクショや文書の貼り付けしてくれたら、教えると思います。


## brew install node だけでもいいらしい
brew install node npm 
npm install -g n 
n stable

yarnもインストール

これを参考にyarnをインストールしましょう。

brew install yarn --ignore-dependencies
絶対にやってはいけないこと

npm install -g yarnはダメです。

できればfishもインストールしましょう

fish fisher fzfなど色々インストールします。

brew install fish fzf
echo /usr/local/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
/usr/local/opt/fzf/install
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
fisher add oh-my-fish/theme-bobthefish

xcode

xcodeをappstoreからダウンロードします

ide

ideをダウンロードします
これは好きなのがいいと思います
学生は無料なので php storm がおすすめです
visual studio code とかでもいいです!

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