npm安装mariasql数据库的时候失败

发布于 2022-09-04 05:19:56 字数 1991 浏览 23 评论 0

npm install mariasql
linux下报错如下

[root@iZ2ze52hbaxq88co0c3210Z test]# npm install mariasql
npm ERR! Linux 3.10.0-327.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "mariasql"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8

npm ERR! shasum check failed for /tmp/npm-6952-ed9d4831/registry.npmjs.org/mariasql/-/mariasql-0.2.6.tgz
npm ERR! Expected: ab78b0671172f0eaf4e80ddad029b803f35cf77a
npm ERR! Actual:   3c64e40f3d735d8dbb1d86e201716b4b73808a72
npm ERR! From:     https://registry.npmjs.org/mariasql/-/mariasql-0.2.6.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/test/npm-debug.log

mac和windows下报错如下:

npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/a1/.nvm/versions/node/v5.10.1/bin/node" "/Users/a1/.nvm/versions/node/v5.10.1/bin/npm" "install" "mariasql"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE

npm ERR! mariasql@0.2.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the mariasql@0.2.6 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mariasql package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mariasql
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mariasql
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/a1/hair/hairServer/npm-debug.log

已经将node更新到最新,并重新安装来node-gyp到全局,仍然无效,mysql正常。但是官方的命令确实是npm install mariasql。实在是百撕不得骑姐呀!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

赴月观长安 2022-09-11 05:19:56

Linux 下失败是因为Hash效验失败,如果不是npm本身的问题,检查下有没有劫持啥的

Mac下,node 版本低了点吧,如果更新后仍然失败,方便贴一下执行过程么

仅冇旳回忆 2022-09-11 05:19:56

这两个都提示是安装包有问题啊...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文