Shasum check failed to set phone break using npm

I tried many times, but still this error (shasum check failed)

4784 error Error: shasum check failed for C:\Users\FENGXI~1\AppData\Local\Temp\npm-7004-QbpFFte5\1387269030233-0.28223602287471294\tmp.tgz 4784 error Expected: dee5a33ff04d7217194dc1ad1342e3a441761942 4784 error Actual: ab7d89ca1f31db14db047d01222dd968649cfb50 4784 error at C:\Program Files\nodejs\node_modules\npm\node_modules\sha\index.js:38:8 4784 error at ReadStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\sha\index.js:85:7) 4784 error at ReadStream.EventEmitter.emit (events.js:117:20) 4784 error at _stream_readable.js:920:16 4784 error at process._tickCallback (node.js:415:13) 4785 error If you need help, you may report this *entire* log, 4785 error including the npm and node versions, at: 4785 error <http://github.com/isaacs/npm/issues> 4786 error System Windows_NT 6.1.7600 4787 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap" 4788 error cwd D:\environment\phonegap 4789 error node -v v0.10.23 4790 error npm -v 1.3.17 
+6
source share
5 answers

Fixed root cause of this. Please do not advise on this topic and do not crack checksum errors. If something has an overloaded checksum, it should not be trusted. At best, it is broken; in the worst case, it is maliciously hacked. In any case, this is not a good sign, and a mistake in the system.

+7
source

Just the same problem. A type:

 $ npm install [URL] 

with url before shasum check. After that, run your installation command again and everything should continue.

eg. for Cordoba it was:

 $ npm install https://registry.npmjs.org/npm/-/npm-1.3.19.tgz 
+13
source

According to @isaacs, basically it will mean a damaged package. In my case, this is not a problem. For me it was:

First try:

 npm set registry https://registry.npmjs.org/ 

and reinstall what you tried to install


In another workaround, use the npm mirror:

 npm set registry http://ec2-46-137-149-160.eu-west-1.compute.amazonaws.com 

you can reset it later with

 npm set registry https://registry.npmjs.org/ 

then use it as usual:

npm install [...]


Note: thanks to hassanmaher at https://github.com/npm/npm/issues/2701#issuecomment-40927831

+4
source

Just reinstall, sometimes due to a network problem. When any module package is not completed, a shasum error will be selected. Please reinstall before success.

+2
source

try: npm install https://registry.npmjs.org/npm/-/npm-1.3.21.tgz

change from "19" to "21"

0
source

All Articles