17
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

$ nodebrew install-binary stableができないとき

Posted at

メモです。

$ nodebrew install-binary stable

node.jsを入れたくてnodebrewをインストールしようとしていますが、エラーが出てしまった。
エラーは以下。

$ nodebrew install-binary stable
Fetching: https://nodejs.org/dist/v16.2.0/node-v16.2.0-darwin-x64.tar.gz
Warning: Failed to create the file 
Warning: /Users/masahito/.nodebrew/src/v16.2.0/node-v16.2.0-darwin-x64.tar.gz: 
Warning: No such file or directory
curl: (23) Failure writing output to destination

download failed: https://nodejs.org/dist/v16.2.0/node-v16.2.0-darwin-x64.tar.gz

このようなエラーが出たので下記のコマンドを実行。

$ curl -L git.io/nodebrew | perl - setup
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 24696  100 24696    0     0  10893      0  0:00:02  0:00:02 --:--:-- 10893
Fetching nodebrew...
Installed nodebrew in $HOME/.nodebrew

========================================
Export a path to nodebrew:

export PATH=$HOME/.nodebrew/current/bin:$PATH
========================================

以下のコマンドで、~/.bash_profileに適用。

$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bash_profile
$ source ~/.bash_profile

このあともう一度最初のコマンドを実行してみる。

$ nodebrew install-binary stable
Fetching: https://nodejs.org/dist/v16.2.0/node-v16.2.0-darwin-x64.tar.gz
######################################################################### 100.0%
Installed successfully

こんな感じ。ダウンロードできたっぽい。

17
7
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
17
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?