LoginSignup
2
1

More than 1 year has passed since last update.

nodenv installが使えない時の対処法

Posted at

前提

今回この現象は,macOSでHomebrewを使用してインストールではなくOracle Linux 8Githubからインストールした際に遭遇した場面です.また,Nodenvのインストール手順は先ほど記載したNodenvのGithubに丁寧に書かれているのでそちらを参考にしてください.
※今回の解決方法は他のOSを用いた際にも対応可能かもしれませんが...

場面

Terminal上で

$ nodenv install

を実行した際に

nodenv: no such command `install'

が帰ってきた際です.

対処

Githubからインストールした場合node-builが自動的にインストールされないためnodenv installが使用できません.そのためTerminal上で...

cd .nodenv
mkdir plugins
cd plugins
git clone https://github.com/nodenv/node-build.git

を順番に行うことでnodenv installが使用できるようになりました.

おわり

最後までご覧いただきありがとうございました.

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