macの設定忘備録


まあこれを見ればほぼ終わりなんですが

https://qiita.com/c60evaporator/items/aef6cc1581d2c4676504

あとこれと

https://tangerine.hateblo.jp/entry/2021/10/26/161116

https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions



```
softwareupdate --install-rosetta   
brew install google-chrome --cask   
brew install --cask visual-studio-code
brew install --cask sublime-text
brew install --cask slack   
brew install --cask clipy   
brew install --cask sourcetree
brew install --cask adobe-creative-cloud
brew install --cask spotify
brew install php@7.4
echo 'export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/php@7.4/sbin:$PATH"' >> ~/.zshrc
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
brew install httpd
```

あとはhttpd.confを変更する。
（which httpd で確認）

あとこの辺も

https://qiita.com/joh_luck/items/f3321ee81166aea0ff3b

```
brew search mysql 
brew install mysql@5.7
echo 'export PATH="/opt/homebrew/opt/mysql@5.7/bin:$PATH"' >> ~/.zshrc
mysql_secure_installation　で初期設定
brew install phpmyadmin
brew install --cask sequel-ace
```

あとこれも

https://qiita.com/akki-memo/items/96e99e432c4461287003

https://arrown-blog.com/mac-nodejs-nvm/

https://qiita.com/Yuya-SSK/items/3471816bea67a9aa62f4



```
brew install composer
brew install nvm
mkdir ~/.nvm
vi .zshrcで
（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 install --lts
npm install -g @vue/cli
```

なんかめちゃくちゃエラー出たけど大丈夫なのか。。。
11 vulnerabilities (4 moderate, 7 high)って。。

```
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated apollo-tracing@0.15.0: The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details
npm WARN deprecated graphql-extensions@0.15.0: The `graphql-extensions` API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated apollo-cache-control@0.14.0: The functionality provided by the `apollo-cache-control` package is built in to `apollo-server-core` starting with Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#cachecontrol for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated graphql-tools@4.0.8: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
```

バージョンの問題かな
一応vue cli でプロジェクト作れたから大丈夫みたいだけど。。
こわい