0
1

Mac Book Proでnodebrew installをしたらcurl: (23)エラーになった時

Posted at

はじめに

$ nodebrew install v21.5.0

コマンドを打ったらエラーになった。
その解消方法を紹介する。

PCスペック

項目 情報
OS macOS Sonoma 14.4.1
ハードウェア MacBook Pro 16inc 2023
プロセッサ Apple M2 pro
メモリ 32GB
$ nodebrew install v21.5.0

実行すると

Fetching: https://nodejs.org/dist/v21.5.0/node-v21.5.0-darwin-arm64.tar.gz
Warning: Failed to open the file
Warning: /Users/{ユーザーID}/.nodebrew/src/v21.5.0/node-v21.5.0-darwin-arm64.tar.gz:
Warning:  No such file or directory
curl: (23) Failure writing output to destination

download failed: https://nodejs.org/dist/v21.5.0/node-v21.5.0-darwin-arm64.tar.gz

あれ?

対象バージョンがないかな?

$ nodebrew ls-remote | grep v21

v21.0.0   v21.1.0   v21.2.0   v21.3.0   v21.4.0   v21.5.0   v21.6.0   v21.6.1
v21.6.2   v21.7.0   v21.7.1   v21.7.2   v21.7.3

あるな。

どうやらダウンロード先のフォルダがないのが原因だったようです。

$ mkdir ~/.nodebrew
$ mkdir ~/.nodebrew/src

を実行してから再度installコマンドを実行

$ nodebrew install v21.5.0

Fetching: https://nodejs.org/dist/v21.5.0/node-v21.5.0-darwin-arm64.tar.gz
############################################################################################################################################################################################################################# 100.0%
Installed successfully

いけました!

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