【发布时间】:2018-09-03 19:03:37
【问题描述】:
我在两个不同的 npm 包上遇到了同样的错误,但似乎无法弄清楚。我检查了this 的答案,我没有运行任何其他服务器。我也尝试过删除我的 module_packages 文件夹,清理 npm cache clean,然后按照许多线程的建议使用 npm i 重新安装,但我仍然遇到同样的错误。
- Windows 10 64 位
- 节点 8.9.4
- npm 5.6.0
C:\Users\hunter\Documents\vid>npm install npm install github:storj/node-libstorj --save
> storj@5.1.0 preinstall C:\Users\hunter\Documents\vid\node_modules\storj
> node ./download.js
Unable to download libstorj for platform: win32 and arch: x64
npm WARN vid@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! storj@5.1.0 preinstall: `node ./download.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the storj@5.1.0 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hunter\AppData\Roaming\npm-cache\_logs\2018-03-25T15_44_06_578Z-debug.log
任何关于可能导致错误的想法都会有所帮助。
【问题讨论】: