Cant install xtend with Npm 6.4.1 - EINTEGRITY Error

registry
priority:low
triaged

(Eos) #1

I’m using NodeJs 8.12.0 with NPM 6.4.1 on Windows 10 and on ubuntu 16 machines. I tried to install for example sonarqube-scanner in version 2.0.2 and I got an EINTEGRITY error.

npm install sonarqube-scanner
npm ERR! code EINTEGRITY
npm ERR! sha1-pcbVMr5lbiPbgg77lDofBJmNY68= integrity checksum failed when using sha1: wanted sha1-pcbVMr5lbiPbgg77lDofBJmNY68= but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg== sha1-2jmj7l5rSw0yVb/vlWAYkK/YBwk=. (0 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\be.nutzer\AppData\Roaming\npm-cache\_logs\2018-10-12T07_27_21_496Z-debug.log

After some research I realized, that I’m not able to install the artifact xtend, which is a dependency of sonarqube-scanner and of other artifacts im using.

λ npm install xtend
npm ERR! code EINTEGRITY
npm ERR! sha1-pcbVMr5lbiPbgg77lDofBJmNY68= integrity checksum failed when using sha1: wanted sha1-pcbVMr5lbiPbgg77lDofBJmNY68= but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg== sha1-2jmj7l5rSw0yVb/vlWAYkK/YBwk=. (0 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\be.nutzer\AppData\Roaming\npm-cache\_logs\2018-10-12T06_46_56_547Z-debug.log

Using the npm version belonging to NodeJs 8.5.0 or using NPM 6.4.1 belonging to NodeJs 9.11.1 I do not have this problem. Also I tried to verify and clean my cache. I also tried
$ npm install xtend --cache D:\tmp\empty-npm-cache

I think this is the same problem reported there:

Details

My debug.log is there:
2018-10-12T07_38_07_385Z-debug.log (3,9 KB)

Platform Info

$ npm --versions
λ npm --versions
{ npm: '6.4.1',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.32.0',
  node: '8.12.0',
  openssl: '1.0.2p',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.2',
  v8: '6.2.414.66',
  zlib: '1.2.11' }
$ node -p process.platform
win32
$ node --version
v8.12.0