##前提実現したいこと
Homebrewがインストールされている状態で、Nodebrewをインストールし、Node.jsするのが目的
##発生している問題
nodebrew -help を実行し、nodebrewのバージョンが表示されるが、
nodebrew ls-remoteでインストール可能なバージョンが何も表示されない
nodebrew 1.0.1 Usage: nodebrew help Show this message nodebrew install <version> Download and install <version> (from binary) nodebrew compile <version> Download and install <version> (from source) nodebrew install-binary <version> Alias of `install` (For backword compatibility) nodebrew uninstall <version> Uninstall <version> nodebrew use <version> Use <version> nodebrew list List installed versions nodebrew ls Alias for `list` nodebrew ls-remote List remote versions nodebrew ls-all List remote and installed versions nodebrew alias <key> <value> Set alias nodebrew unalias <key> Remove alias nodebrew clean <version> | all Remove source file nodebrew selfupdate Update nodebrew nodebrew migrate-package <version> Install global NPM packages contained in <version> to current version nodebrew exec <version> -- <command> Execute <command> using specified <version> Example: # install nodebrew install v8.9.4 # use a specific version number nodebrew use v8.9.4
##試したこと
- brew install nodebrew実施
- nodebrew -v でバージョン確認
- nodebrew ls-remoteで何も表示されない
- nodebrew setupを実施
- echo "export PATH=$HOME/.nodebrew/current/bin:$PATH" >> ~/.bash_profileを実施
- source ~/.bash_profileを実施したら、ターミナルにエラーが発生していたが、bash_profileの全角を半角に直したら、エラー解消
- nodebrew -v(2でバージョン確認したもの)が、何も表示されず(何もエラーが出ずにコマンド受付の状態)
ls -al $HOME/.nodebrew/current/bin を実行
lrwxr-xr-x 1 username staff 39 8 7 09:11 nodebrew -> /Users/username/.nodebrew/nodebrew
8. .bash_profileにexport PATH=/Users/username/.nodebrew/nodebrew:$PATHを追加し、nodebrew -helpでバージョンが表示される
9. nodebrew ls-remoteでインストール可能なバージョンが表示されない。(ターミナルで実行後、一行空白ができ、次のコマンド受付の状態)
##補足情報
プログラミング素人なので、アドバイスお願いします
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。