2013-09-30 15 views
5

Sto cercando di installare phonegap su Ubuntu 13.04 (Raring Ringtail). Funziona bene per un bel po 'di pacchetti e poi tutto ad un tratto si ferma ... Ecco l'uscita dell'ultimo paio di righe ...Problema di installazione di PhoneGap (controllo shasum non riuscito)

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 

Cos'è questo checksum che sta cercando? Perché dovrebbe essere quello che dice e perché sarebbe diverso? Google non è stato in grado di fornirmi una risposta solida qui.

Non ho idea di cosa posso fare per risolvere questo problema - qualche idea? Grazie!

+1

@animuson non vedo come questo è un duplicato di una domanda posta 21 ore fa quando questo è stato chiesto quasi 3 mesi fa (non dovrebbe essere un duplicato di questo?), Ma grazie per avermi indicato rispondi in ogni caso. – iLikeBreakfast

risposta

7

Stranamente la soluzione a questo problema non appare su nessun motore di ricerca. In ogni caso, secondo il this issue sul tema NPM su Github, tutto quello che dovete fare è installare NPM-1.3.19.tgz come illustrato di seguito, in primo luogo:

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

quindi l'installazione di PhoneGap/Cordova solito modo. L'ho provato e funziona per me.

UPDATE:

installare qualsiasi pacchetto che non è riuscita, come illustrato di seguito:

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

quindi l'installazione di PhoneGap/Cordova solito modo. L'ho provato e funziona per me.

+2

Come https://registry.npmjs.org/npm/-/npm-1.3.19.tgz non esiste più quindi si prega di utilizzare https://registry.npmjs.org/npm/-/ NPM-1.3.21.tgz – amitgoyal

2

Ho avuto lo stesso problema. (su Mac OSX v10.8.5)

Come risultato di aver eseguito ripetutamente quattro o cinque volte gli stessi comandi, sono riuscito nell'installazione.

+0

Ha funzionato anche per me su Windows –

Problemi correlati