All builds suddenly stopped working, npm checksum wrong for random npm packages.

Kamil's Avatar

Kamil

16 Sep, 2015 12:48 PM

Hi,

Suddenly, all of our builds are failing now due to npm checksum errors.
Thing is, it is about random and different npm packages, for example:

npm ERR! shasum check failed for C:\Users\appveyor\AppData\Local\Temp\1\npm-2212-aa3c81e7\registry.npmjs.org\base64-js\-\base64-js-0.0.6.tgz
npm ERR! Expected: 7b859f79f0bbbd55867ba67a7fab397e24a20947
npm ERR! Actual:   da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From:     https://registry.npmjs.org/base64-js/-/base64-js-0.0.6.tgz
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
 
npm ERR! Please include the following file with any support request:
npm ERR!     C:\projects\myday\MVC Web UI Role\npm-debug.log
Command exited with code 1
npm ERR! shasum check failed for C:\Users\appveyor\AppData\Local\Temp\1\npm-1432-a5db4e48\registry.npmjs.org\lodash.keys\-\lodash.keys-3.1.2.tgz
npm ERR! Expected: 4dbc0472b156be50a0b286855d1bd0b0c656098a
npm ERR! Actual:   da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From:     https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz
npm ERR! shasum check failed for C:\Users\appveyor\AppData\Local\Temp\1\npm-2592-87966cab\registry.npmjs.org\lodash._reevaluate\-\lodash._reevaluate-3.0.0.tgz
npm ERR! Expected: 58bc74c40664953ae0b124d806996daca431e2ed
npm ERR! Actual:   da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From:     https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz

Seems like AppVeyor is getting these packages from some unknown cache, as "Expected" SHA sums are correct (just compared with files from these URLs), although "Actual" values are wrong.

Everything was fine up until about 4 hours ago, at 9am (UK, GMT+1).
We have tried to use 'npm cache clean' before any npm install commands in the build process, without luck.

We have not made any changes to npm packages used in the project, etc.

Has something changed recently? Proxy servers, caching, new starter VMs with different configuration?

Kind regards,
Kamil

  1. 1 Posted by jh on 16 Sep, 2015 01:17 PM

    jh's Avatar

    This is happening to us also. We had successful npm-builds 4-5h ago and now they're failing with these random checksum mismatches.

  2. Support Staff 2 Posted by Feodor Fitsner on 16 Sep, 2015 01:31 PM

    Feodor Fitsner's Avatar

    What projects are those?

    - Feodor

  3. 3 Posted by Kamil on 16 Sep, 2015 01:32 PM

    Kamil's Avatar

    @Feodor: collabco/myday-cloud in our case. Thanks!

  4. 4 Posted by jh on 16 Sep, 2015 01:34 PM

    jh's Avatar

    Ours is a private repo but it fails when npm installing gulp and bower:

    npm install -g gulp bower
    npm ERR! Windows_NT 6.3.9600
    npm ERR! argv "node" "C:\\Users\\appveyor\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "gulp" "bower"
    npm ERR! node v0.12.7
    npm ERR! npm  v2.11.3
     
    npm ERR! shasum check failed for C:\Users\appveyor\AppData\Local\Temp\1\npm-2120-303bb22e\registry.npmjs.org\lodash._reevaluate\-\lodash._reevaluate-3.0.0.tgz
    npm ERR! Expected: 58bc74c40664953ae0b124d806996daca431e2ed
    npm ERR! Actual:   da39a3ee5e6b4b0d3255bfef95601890afd80709
    npm ERR! From:     https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz
    npm ERR! 
    npm ERR! If you need help, you may report this error at:
    npm ERR!     <https://github.com/npm/npm/issues>
     
    npm ERR! Please include the following file with any support request:
    npm ERR!     C:\projects\texas-angular\npm-debug.log
    Command exited with code 1
    
  5. Support Staff 5 Posted by Feodor Fitsner on 16 Sep, 2015 01:42 PM

    Feodor Fitsner's Avatar

    Seems like there is some ongoing issue with npm:

    https://github.com/npm/npm/issues/9600

    https://github.com/npm/npm/issues/9603

    - Feodor

  6. Support Staff 6 Posted by Feodor Fitsner on 16 Sep, 2015 04:53 PM

    Feodor Fitsner's Avatar
  7. 7 Posted by jh on 16 Sep, 2015 05:00 PM

    jh's Avatar

    Yep! Now everything is back to normal.

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac