WSL: npm: SHA Checksum fails, tar files modified?

I have an issue when installing npm packages, it appears that the sha1 checksum verification fails. Is this due to a modification to the tar files or a different issue? Installing on plain Ubuntu works.

To replicate:

  1. Try to install npm: curl -L https://www.npmjs.com/install.sh | sh
  2. It will error out on a dependency installation:
> node bin/npm-cli.js prune --prefix=. --no-global && rimraf test/*/*/node_modules && make doc-clean && make -j4 doc

npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/tmp/npm.158/package/cli.js" "install" "-gf"
npm ERR! node v5.11.0
npm ERR! npm  v3.8.9

npm ERR! shasum check failed for /tmp/npm-200-dfb4562b/registry.npmjs.org/hoek/-/hoek-2.16.3.tgz
npm ERR! Expected: 20bb7403d3cea398e91dc4710a8ff1b8274a25ed
npm ERR! Actual:   87cd98ad78a83e428a59bba650f85b2cfd709fc7
npm ERR! From:     https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/npm.158/package/npm-debug.log
It failed
➜  ~

The same issue occurs when npm is already installed and you try to install another package.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

@GordonSmith I believe you are right. The fix for that issue should hopefully be in the next insider fast ring build.

Latest build doesn’t seem to have fixed the issue?