2013-09-30 2 views
5

우분투 13.04 (Raring Ringtail)에 phonegap을 설치하려고합니다. 그것은Phonegap 설치 문제 (shasum check failed)

npm http GET https://registry.npmjs.org/async/-/async-0.1.22.tgz 
npm http 200 https://registry.npmjs.org/async/-/async-0.1.22.tgz 
npm http GET https://registry.npmjs.org/graceful-fs 
npm http 200 https://registry.npmjs.org/graceful-fs 
npm http GET https://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.1.tgz 
npm http 200 https://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.1.tgz 
npm ERR! Error: shasum check failed for /home/thomas/tmp/npm-28537- 
    2GGcJK29/1380571519720-0.5711500460747629/tmp.tgz 
npm ERR! Expected: 4bf7f005fe1038c4fe9207603b961c97bd0ba5a3 
npm ERR! Actual: b237f063a8d2d81a648e08b7173f9b1e040cc77f 
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:125:20) 
npm ERR!  at _stream_readable.js:896:16 
npm ERR!  at process._tickCallback (node.js:316:11) 
npm ERR! If you need help, you may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 
npm ERR! System Linux 3.8.0-31-generic 
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "phonegap" 
npm ERR! cwd /home/thomas/node 
npm ERR! node -v v0.11.8-pre 
npm ERR! npm -v 1.3.11 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/thomas/node/npm-debug.log 
npm ERR! not ok code 0 

는이 체크섬 찾고 무엇 ... 여기 ... 다음 전체 패키지의 많은 갑자기 정지의 모든 잘 실행 라인의 마지막 커플의 출력입니까? 왜 그것이 그것이 말하는 것과 왜 다른 것일까? Google은 여기에 확실한 대답을 제공하지 못했습니다.

나는 이것을 해결하기 위해 무엇을 할 수 있는지 전혀 모른다 - 어떤 아이디어? 감사!

+1

@animuson이 글은 거의 3 개월 전에 질문을 받았을 때 물어 본 질문의 복제본을 보지 못했습니다 (중복해서는 안됩니까?).하지만 나를 가르쳐 주셔서 감사합니다. 어떤 경우라도 대답하십시오. – iLikeBreakfast

답변

7

이상하게도이 문제에 대한 해결책은 검색 엔진에 나타나지 않습니다. 아래 그림과 같이 어쨌든, Github에서에 NPM 문제에 this issue에 따라, 당신이 할 필요가 첫 번째, NPM-1.3.19.tgz를 설치하는 것입니다 :

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

그리고 폰갭/코르도바을 평소와 다름없이 설치

. 나는 그것을 시도했고 그것은 나를 위해 일하고있다.

UPDATE :

설치간에 다음과 같이 실패 패키지 :

npm install [the URL right before the shasum check fails] 

그리고 폰갭/코르도바을 평소와 다름없이 설치

. 나는 그것을 시도했고 그것은 나를 위해 일하고있다.

+2

https://registry.npmjs.org/npm/-/npm-1.3.19.tgz가 더 이상 존재하지 않으므로 https://registry.npmjs.org/npm/-/를 사용하십시오. npm-1.3.21.tgz – amitgoyal

2

나는 동일한 문제가있었습니다. (Mac OSX v10.8.5)

동일한 명령을 반복해서 4 번 또는 5 번 실행 한 결과 설치에 성공했습니다.

+0

창문에서도 나를 위해 일했습니다 –