Skip to content

nvm install may failed with broken cache #1291

@PeterDaveHello

Description

@PeterDaveHello

A broken local cache may fail the installation process as below, please note that the output was generated by a modified nvm by my patch, for help debug and improve the user experience.

$ nvm i 5                                              
Downloading and installing node v5.12.0...
Local cache found - $NVM_DIR/.cache/bin/node-v5.12.0-linux-x64/node-v5.12.0-linux-x64.tar.xz
Checking its checksum ...
Computing checksum with sha256sum
Checksums do not match: 'ee97c28bea7b39b812ff1f83f66298014e1f7ab29f491f38d541540cb997764b' found, '619fc1d14ee0c92894cf01bf1a47f5bae321ac04dfeb4cea6a2b6ce65832df79' expected.
Checksums match failed!
Fallback to download https://nodejs.org/dist/v5.12.0/node-v5.12.0-linux-x64.tar.xz
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums do not match: '4aaad95d615190e4d68eba977ce586951f6e2d409de35e214bd5114d3ddfc6fc' found, '619fc1d14ee0c92894cf01bf1a47f5bae321ac04dfeb4cea6a2b6ce65832df79' expected.
xz: (stdin): Compressed data is corrupt
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Binary download failed, trying source.
Local cache found - $NVM_DIR/.cache/src/node-v5.12.0/node-v5.12.0.tar.xz
Checking its checksum ...
Computing checksum with sha256sum
Checksums do not match: '20fa70aefd1fdc49f4d90b74af9312e471273e54af84ca7814bf865011fb7d55' found, '4f926373f11f2a25156eee1804ec012eb912c42e5d34fc2909889da22efdadfe' expected.
Checksums match failed!
Fallback to download https://nodejs.org/dist/v5.12.0/node-v5.12.0.tar.xz
#########################################                                 58.1%^C

Metadata

Metadata

Assignees

No one assigned

    Labels

    installing nodeIssues with installing node/io.js versions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions