npm / registry-issue-archive

An archive of the old npm registry issue tracker
https://npm.community
249 stars 47 forks source link

Download and install fails with 'integrity checksum failed when using sha512' #307

Closed rizwansaeed closed 6 years ago

rizwansaeed commented 6 years ago

trying to install the following fails:

npm" "install" "-g" "@microsoft.azure/autorest-core

npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   '@microsoft.azure/autorest-core' ]
2 info using npm@5.6.0
3 info using node@v8.9.4
4 verbose npm-session 466cc19f3605f6c2
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/@microsoft.azure%2fautorest-core 443ms
8 silly pacote tag manifest for @microsoft.azure/autorest-core@latest fetched in 519ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly resolveWithNewModule @microsoft.azure/autorest-core@2.0.4245 checking installable status
14 silly currentTree lib
15 silly idealTree lib
15 silly idealTree `-- @microsoft.azure/autorest-core@2.0.4245
16 silly install generateActionsToTake
17 silly diffTrees action count 1
18 silly diffTrees add @microsoft.azure/autorest-core@2.0.4245
19 silly decomposeActions action count 8
20 silly decomposeActions fetch @microsoft.azure/autorest-core@2.0.4245
21 silly decomposeActions extract @microsoft.azure/autorest-core@2.0.4245
22 silly decomposeActions preinstall @microsoft.azure/autorest-core@2.0.4245
23 silly decomposeActions build @microsoft.azure/autorest-core@2.0.4245
24 silly decomposeActions install @microsoft.azure/autorest-core@2.0.4245
25 silly decomposeActions postinstall @microsoft.azure/autorest-core@2.0.4245
26 silly decomposeActions finalize @microsoft.azure/autorest-core@2.0.4245
27 silly decomposeActions refresh-package-json @microsoft.azure/autorest-core@2.0.4245
28 silly install executeActions
29 silly doSerial global-install 8
30 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
31 verbose lock using /root/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
32 silly doParallel extract 8
33 silly extract @microsoft.azure/autorest-core@2.0.4245
34 silly pacote trying @microsoft.azure/autorest-core@https://registry.npmjs.org/@microsoft.azure/autorest-core/-/autorest-core-2.0.4245.tgz by hash: sha512-RdifMKO3WEmnhu8sQmxtyLgI3FM3XmVNiuH01c6V9DQ12H508clkaO0QcVDUFegugRMLYXdSG7ElLbuYDqGDPA==
35 silly pacote data for sha512-RdifMKO3WEmnhu8sQmxtyLgI3FM3XmVNiuH01c6V9DQ12H508clkaO0QcVDUFegugRMLYXdSG7ElLbuYDqGDPA== not present. Using manifest.
36 verbose unlock done using /root/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
37 verbose stack Error: sha512-RdifMKO3WEmnhu8sQmxtyLgI3FM3XmVNiuH01c6V9DQ12H508clkaO0QcVDUFegugRMLYXdSG7ElLbuYDqGDPA== integrity checksum failed when using sha512: wanted sha512-RdifMKO3WEmnhu8sQmxtyLgI3FM3XmVNiuH01c6V9DQ12H508clkaO0QcVDUFegugRMLYXdSG7ElLbuYDqGDPA== but got sha512-636TY+vyQa3JFRAfl/eHwXH5lF6PSLaATzd8CyatB4b9PZ/lF9rGS3qGpl4bLAwEbNoRn1G54p6k0frYAoZNlw==. (856318 bytes)
37 verbose stack     at Transform.on (/usr/lib/node_modules/npm/node_modules/ssri/index.js:275:19)
37 verbose stack     at emitNone (events.js:111:20)
37 verbose stack     at Transform.emit (events.js:208:7)
37 verbose stack     at endReadableNT (_stream_readable.js:1055:12)
37 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
37 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)
38 verbose cwd /usr/src
39 verbose Linux 4.9.87-linuxkit-aufs
40 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "@microsoft.azure/autorest-core"
41 verbose node v8.9.4
42 verbose npm  v5.6.0
43 error code EINTEGRITY
44 error sha512-RdifMKO3WEmnhu8sQmxtyLgI3FM3XmVNiuH01c6V9DQ12H508clkaO0QcVDUFegugRMLYXdSG7ElLbuYDqGDPA== integrity checksum failed when using sha512: wanted sha512-RdifMKO3WEmnhu8sQmxtyLgI3FM3XmVNiuH01c6V9DQ12H508clkaO0QcVDUFegugRMLYXdSG7ElLbuYDqGDPA== but got sha512-636TY+vyQa3JFRAfl/eHwXH5lF6PSLaATzd8CyatB4b9PZ/lF9rGS3qGpl4bLAwEbNoRn1G54p6k0frYAoZNlw==. (856318 bytes)
45 verbose exit [ 1, true ]