LoginSignup
1
2

More than 5 years have passed since last update.

【メモ】nvm0.33.2 でnode.jsのインストールがこける場合の対処法

Last updated at Posted at 2017-06-21

http://qiita.com/ozawan/items/86ca7551d59005128892
こちらを参考にnodeをインストールしようとしてこけたので、その対処法をメモ。

$ nvm install stable
Downloading and installing node v8.1.2...
Downloading https://nodejs.org/dist/v8.1.2/node-v8.1.2-linux-x64.tar.xz...
curl: (3) <url> malformed
######################################################################## 100.0%
grep: /root/.nvm/.cache/bin/node-v8.1.2-linux-x64/node-v8.1.2-linux-x64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Detected that you have 4 CPU core(s)
Running with 3 threads to speed up the build
Downloading https://nodejs.org/dist/v8.1.2/node-v8.1.2.tar.xz...
curl: (3) <url> malformed
######################################################################## 100.0%
grep: /root/.nvm/.cache/src/node-v8.1.2/node-v8.1.2.tar.xz: No such file or directory
Provided file to checksum does not exist.

curl: (3) malformed が発生。100%になってるけど実際にはダウンロードされていない。

nvmのバージョンを確認

$ nvm --version
0.33.2

手元のvagrant環境ではstableのインストールが通るのでnvmのバージョンを確認してみる。

$ nvm --version
0.33.0

nvmのバージョンを0.33.0に合わせてみる。
gitなのでtagをチェックアウトしてみる。

$ cd .nvm
$ git checkout -b v0.33.0 refs/tags/v0.33.0

バージョン確認してみる。

$ source ~/.nvm/nvm.sh
$ nvm --version
0.33.0

0.33.0になったので再度nodeをインストール。

$ nvm install stable
Downloading and installing node v8.1.2...
Downloading https://nodejs.org/dist/v8.1.2/node-v8.1.2-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v8.1.2 (npm v5.0.3)
Creating default alias: default -> stable (-> v8.1.2)

無事に成功。

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