javascript - 安装 npm 包 weexpack 时校验和验证失败

标签 javascript node.js bash npm

我在安装 weexpack 时遇到问题。看来 sha1 校验和验证失败了。

npm install -g weexpack

npm ERR! code EINTEGRITY
npm ERR! sha1-33w+1aJ3w/nUtdgZsFMR0QogCuY= integrity checksum failed when using sha1: wanted sha1-33w+1aJ3w/nUtdgZsFMR0QogCuY= but got sha1-H0xrYFIJCXPy22raAWsSKzZMeS8=. (2748202 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/khodja/.npm/_logs/2017-07-22T06_49_47_089Z-debug.log

日志:

161 silly resolveWithNewModule tar@1.0.2 checking installable status
162 verbose stack Error: sha1-33w+1aJ3w/nUtdgZsFMR0QogCuY= integrity checksum failed when using sha1: wanted sha1-33w+1aJ3w/nUtdgZsFMR0QogCuY= but got sha1-H0xrYFIJCXPy22raAWsSKzZMeS8=. (2748202 bytes)
162 verbose stack     at Transform.on (/usr/local/lib/node_modules/npm/node_modules/ssri/index.js:275:19)
162 verbose stack     at emitNone (events.js:110:20)
162 verbose stack     at Transform.emit (events.js:207:7)
162 verbose stack     at endReadableNT (_stream_readable.js:1045:12)
162 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
162 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)
163 verbose cwd /Users/khodja
164 verbose Darwin 16.5.0
165 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "./weex-pack" "--save-optional"
166 verbose node v8.2.1
167 verbose npm  v5.3.0
168 error code EINTEGRITY
169 error sha1-33w+1aJ3w/nUtdgZsFMR0QogCuY= integrity checksum failed when using sha1: wanted sha1-33w+1aJ3w/nUtdgZsFMR0QogCuY= but got sha1-H0xrYFIJCXPy22raAWsSKzZMeS8=. (2748202 bytes)
170 verbose exit [ 1, true ]

最佳答案

我通过将 Node Js 和 npm 降级到旧版本解决了这个问题

关于javascript - 安装 npm 包 weexpack 时校验和验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45252324/

相关文章:

linux - vim - 通过执行命令在 shell 中维护 session

javascript - Socket.io 连接状态确认

javascript - 条形图上的 Highcharts 点击事件

javascript - jQuery 链接自定义函数

javascript - 定义 Vue.js 模板别名

node.js - 类型错误 : Cannot read property 'passport' of undefined nodejs

linux - 在一个命令中更改 'sudo -i' 之后的目录

javascript - 有没有getter jQuerys CSS翻译?

javascript - 我想在我的 Nodejs 后端重用另一个模块的代码

bash - 将 bash 类型 `${i%.mp3}` 语法与 xargs 一起使用?