1
1

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.

Macでasdfの環境構築

Last updated at Posted at 2024-04-11

プロジェクトの直下に.tool-versionsが存在していたらasdfを使っているかと思いますので、素直にインストールしましょう。

環境

  • M2Mac
  • Homebrew
  • ZSH

インストール

公式 に従って進めます

brew install coreutils curl git
brew install asdf
echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc

既存プロジェクトのnodejsを設定する

$ cat .tool-versions 
nodejs 20.12.0
brew install gpg gawk
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install

トラブルシューティング

Xcodeが古くてエラーが出る

Error: Your Xcode (11.1) at /Applications/Xcode.app is too outdated.
Please update to Xcode 15.1 (or delete it).
Xcode can be updated from the App Store.

→AppStoreからXcodeをインストールする

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?