imodeljs/imodeljs-samples

Failed node ./common/scripts/install-run-rush update

I-Sokolov opened this issue · 1 comments

 WARN  Fetching pkgs.dev.azure.com/@bentley/imodeljs-native/1.14.1 failed!
 ERROR  sha512-Xy+3RJmh+ovq6/ntcf9WEUi8dGExaRf5cdZM4Eo7kPCPARJruw/sQIP/+/N18Y4Kf/o9j+G1VIsZHK3pqMtJPQ== integrity checksum failed when using sha512: wanted sha512-Xy+3RJmh+ovq6/ntcf9WEUi8dGExaRf5cdZM4Eo7kPCPARJruw/sQIP/+/N18Y4Kf/o9j+G1VIsZHK3pqMtJPQ== but got sha512-+yBBlRj6Z1+4AiLsVdK3tkZOSGIVcByMt4Zg4UnlhRNyt1jCpxh3Hjf7V2tJ+p0oAC+qa5rpQMI72FMMWoJ9cQ==. (11214 bytes)

@I-Sokolov it looks like you're trying to pull the @bentley/imodeljs-native package from Azure Artifacts instead of npmjs.org. There's an issue with Azure Artifacts and npmjs calculating different checksums for the native package so when you switch between the two it causes this issue.

If you add @bentley:registry=https://registry.npmjs.org/ to the common/config/rush/.npmrc, in addition to the line that's already there, that should fix the issue without changing you user profile.

That line will override the @bentley:registry setting that you could have in your user profile for this repo only.