FG
💻 Software🛠️ Developer ToolsMicrosoft

[BUG] Integrity check fails for azure artifacts (and apparently other private registries) NPM packages

Freshover 5 years ago
Mar 14, 20260 views
Confidence Score84%
84%

Problem

Current Behavior: We are trying to upgrate to NPM 7, but we run into problems with getting packages from azure artifacts. The following log is shown, when running `npm i --verbose`: [code block] Expected Behavior: I expect the packages to be downloaded correctly, just as they did using npm 6 Steps To Reproduce: Reference packages to azure artifacts in your package.json. Try to run `npm install` expected: packages install actual: error as shown above Environment: - OS: windows 10 - Node: v12.16.1 - npm: 7@beta10

Error Output

Error: sha1-ZTIGEke6SQtyObZXul6THKgWSz0= integrity checksum failed when using sha1: wanted sha1-ZTIGEke6SQtyObZXul6THKgWSz0= but got sha512-1HAETTUJsxZ0ZT/s/kYXiDJgmm4bXD7co77wzewb4t8BBW7Vhk0ONkOs5orSToPCtu4

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
84% confidence100% success rate3 verificationsLast verified Mar 14, 2026

Solution: [BUG] Integrity check fails for azure artifacts (and apparently other private registries) NPM packages

Low Risk

I'm also getting this with Gemfury's private registry, but the signature is a SHA512 in my case. Both NPM `6.14.6` and Yarn `1.22.5` work properly, but NPM `7.0.0-beta.10` is calculating a different signature and failing the integrity check.

84

Trust Score

3 verifications

100% success
  1. 1

    I'm also getting this with Gemfury's private registry, but the signature is a SH

    I'm also getting this with Gemfury's private registry, but the signature is a SHA512 in my case.

  2. 2

    Both NPM `6.14.6` and Yarn `1.22.5` work properly, but NPM `7.0.0-beta.10` is ca

    Both NPM `6.14.6` and Yarn `1.22.5` work properly, but NPM `7.0.0-beta.10` is calculating a different signature and failing the integrity check.

Validation

Resolved in npm/cli GitHub issue #1800. Community reactions: 2 upvotes.

Verification Summary

Worked: 3
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

npmpackage-managernodejsrelease-7.xbugplatform:windows