【问题标题】:while executing the npm install, it is showing error shasum check failed执行 npm install 时,显示错误 shasum check failed
【发布时间】:2021-07-04 00:33:54
【问题描述】:

我正在尝试在存储库中执行 npm install 但它显示此错误 几天前它工作正常,但今天我收到此错误

npm ERR! Linux 5.4.0-70-generic
npm ERR! argv "/home/userName/.nvm/versions/node/v6.11.2/bin/node" "/home/userName/.nvm/versions/node/v6.11.2/bin/npm" "i"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10

npm ERR! shasum check failed for /tmp/npm-21611-583a4ffd/registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz
npm ERR! Expected: 6414#82913697da51590397dafb12f22967811ce
npm ERR! Actual:   6414c82913697da51590397dafb12f22967811ce
npm ERR! From:     https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.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!     /home/userName/repository/repositoryName/npm-debug.log

而且我认为带有 npm 的 ny 命令也不起作用, 我不想升级我的 nodejs 和 npm

【问题讨论】:

  • 顺便说一下,你的 node 和 npm 版本已经很老了。您可能会在最近的版本中发现更少的问题(如果它适用于该项目)
  • @fregante 我知道,关于我的项目是在这个版本上开发的,不允许升级,这就是为什么我已经提到 - 我不想升级我的版本

标签: node.js linux ubuntu npm gulp


【解决方案1】:

尝试清除 NPM 缓存。 (npm cache clean)

由于# 的二进制值是0b00100011 而正确的字符@ 987654325@ 是0b01100011(相差一位)。

【讨论】:

    猜你喜欢
    • 2014-01-05
    • 2017-08-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-28
    • 2014-08-30
    • 2020-12-01
    • 1970-01-01
    相关资源
    最近更新 更多