angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Cannot install @uirouter/core@5.0.3 (and pretty much any other version of this package) #3701

Closed jefim closed 6 years ago

jefim commented 6 years ago

This is a (check one box):

My version of UI-Router is: 1.0.3 (type version)

Bug Report

Current Behavior:

When trying to npm install @uirouter/core@5.0.3 it gives me the following:

42 verbose type Error
43 verbose stack Error: sha1-4rWx5FGQ4gxnuk4VwBPeXU4MyrM= integrity checksum failed when using sha1: wanted sha1-4rWx5FGQ4gxnuk4VwBPeXU4MyrM= but got sha1-IdCuSGvR9IMYE7qZUP9sS4dIDmM=. (48841 bytes)
43 verbose stack     at Transform.on (/usr/local/lib/node_modules/npm/node_modules/ssri/index.js:275:19)
43 verbose stack     at emitNone (events.js:111:20)
43 verbose stack     at Transform.emit (events.js:208:7)
43 verbose stack     at endReadableNT (_stream_readable.js:1056:12)
43 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
43 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)
44 verbose cwd /Users/jefimborissov/Work/testnpm
45 verbose Darwin 17.5.0
46 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@uirouter/core@5.0.3"
47 verbose node v8.9.1
48 verbose npm  v5.6.0
49 error code EINTEGRITY
50 error sha1-4rWx5FGQ4gxnuk4VwBPeXU4MyrM= integrity checksum failed when using sha1: wanted sha1-4rWx5FGQ4gxnuk4VwBPeXU4MyrM= but got sha1-IdCuSGvR9IMYE7qZUP9sS4dIDmM=. (48841 bytes)
51 verbose exit [ 1, true ]

Trying to install latest also results in same error, but checksums are different. Reproduced on at least two machines. NPM cache cleaning does not help.

Expected Behavior:

Package is properly installed

mitsos1os commented 6 years ago

Same exact issue on a completely clean (Docker container) environment using Node V10.1.0 and npm v5.6.0 when trying to install @uirouter/angularjs so there must be something going on with whole uirouter scope

jefim commented 6 years ago

I think it is the fact that @uirouter/angularjs depends on @uirouter/core. Thus installing angularjs package fails.

CodingCarlos commented 6 years ago

I had the same problem here. It seems to be an npm checksum error. Now, it's working as expected, at least for me (maybe a little bit slower than other packages, but working). :+1:

jefim commented 6 years ago

Umm.. ok. I think that this just fixed... itself?.. No idea what happened there but I don't get errors anymore. I have no idea what the issue was, but it is now installing properly... Some NPM internal problem I guess...