“shasum检查失败”安装Phonegap时出错 [英] "shasum check failed" Error while installing Phonegap

查看:216
本文介绍了“shasum检查失败”安装Phonegap时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS机器上安装PhoneGap时遇到问题:

I have problem while installing PhoneGap on my Mac OS machine using:

sudo npm install -g phonegap

错误讯息:

npm ERR! Error: shasum check failed for /Users/MYUSER/tmp/npm-33966-l4NZ7A8D/1387281663617-0.9133979633916169/tmp.tgz
npm ERR! Expected: dee5a33ff04d7217194dc1ad1342e3a441761942
npm ERR! Actual:   ab7d89ca1f31db14db047d01222dd968649cfb50
npm ERR!     at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR!     at ReadStream.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:85:7)
npm ERR!     at ReadStream.EventEmitter.emit (events.js:120:20)
npm ERR!     at _stream_readable.js:896:16
npm ERR!     at process._tickCallback (node.js:599:11)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "phonegap"
npm ERR! cwd /Users/HummusawY
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.17
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/MYUSER/npm-debug.log
npm ERR! not ok code 0


推荐答案



Try this:

sudo npm install https://registry.npmjs.org/npm/-/npm-1.3.19.tgz

然后

sudo npm install -g phonegap

我的校验和的问题是由 https://registry.npmjs.org/npm/-/npm-1.3.19.tgz

The problem on my checksum was caused by https://registry.npmjs.org/npm/-/npm-1.3.19.tgz

这篇关于“shasum检查失败”安装Phonegap时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆