1
2

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 1 year has passed since last update.

M1 mac インストール場所のメモ

Last updated at Posted at 2021-02-05

#インストールするもの
*インストール場所
*PATH
ホームディレクトリ配下にあるファイルをvi/vim等でPATHを追記。
(bash)
~/.bash_profile

(zsh)
~/.zshrc

*PATHの反映
source ~/.bash_profile
source ~/.zshrc

#homebrew
/opt/homebrew
export PATH=/opt/homebrew/bin:$PATH

#mysql
/opt/homebrew/Cellar/mysql@5.7
export PATH="/opt/homebrew/opt/mysql@5.7/bin:$PATH"

#node.js
*nodebrewからnode.jsがインストールできなかったため、nvm経由でnode.jsをインストール。
brew install nvm
mkdir ~/.nvm
vi .bash_profile

//.bash_profileに追記

export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh"  # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion

nvm --version
nvm ls-remote
nvm i v15.5.0(バージョンは任意で)
node -v (インストール完了後バージョン確認)

#php
brew install php@7.4(PHP7.4の場合)
export PATH=/opt/homebrew/opt/php@7.4/bin:$PATH

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?