LoginSignup
1
0

More than 3 years have passed since last update.

macOSにnvmを入れた後、何もできなくなったとき

Posted at

メモ書き。
こんなことで時間をかけたくない・かけないほうがいいので、何かの参考になれば。
OSはCatalina。brewでnvmをインストール済み。

OpenSSLで何か出た

1.1系を入れてしまったからかもしれない。

/Users/yuki% nvm ls-remote
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/opt/curl/bin/curl
  Reason: image not found
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/opt/curl/bin/curl
  Reason: image not found
            N/A

バージョン指定してもインストールできなかった。
理由はEOLだから、らしい。
参考: https://qiita.com/kunit/items/0aef44d5e522abde1f9c

やったこと

1.0系はインストールされていたけど、どうにも切り替えられないので再インストール。
参考: https://github.com/Homebrew/homebrew-core/issues/47348
参考: https://qiita.com/kunit/items/0aef44d5e522abde1f9c

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/64555220bfbf4a25598523c2e4d3a232560eaad7/Formula/openssl.rb -f

最後の-fをつけないとインストールされない。とりあえずこれで1.0.2tが入ってくれた様子。

/Users/yuki% openssl version
OpenSSL 1.0.2t  10 Sep 2019

それでもダメだった

/Users/yuki% nvm ls-remote
            N/A

心が折れかける。

やったこと2

NVM_NODEJS_ORG_MIRRORを設定するとよいとのこと。
参考: https://qiita.com/i47_rozary/items/3ed6335fe14ef9788911

.zshrcにexport NVM_NODEJS_ORG_MIRROR=http://nodejs.org/distを追記し、反映後に再度nvm ls-remote

/Users/yuki% nvm ls-remote --lts
         v4.2.0   (LTS: Argon)
##以下略

無事接続できたので、この後インストールしました。

感想

OpenSSL系のエラーが出ると毎回手詰まるし、萎える。
今日も皆さんの投稿に救われました。多謝。

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