Quantcast
Viewing all articles
Browse latest Browse all 8940

nvmをインストールしたのに、-bash: nvm: command not foundになる。

https://github.com/nvm-sh/nvm#install--update-script
こちらの

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

を使ってnvmをインストールし、特にエラーもなく完了したはずなのに

$ nvm --version


-bash: nvm: command not found
と言われた。

色々試した結果、

$ source ~/.nvm/nvm.sh

を実行することで解決。

頑張った末に、手順の下の方に”Troubleshooting on macOS”を見つけたので、ドキュメントを読むのが大事だと思いました。


Viewing all articles
Browse latest Browse all 8940

Trending Articles