Stupid SHA Checksum changes in npm 5

In version of npm 5, you can see similar failure like

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM= integrity checksum failed when using sha1: wanted sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM= but got sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==. (11423 bytes)

That’s because npm changed their integrity checksum from sha1 to sha512.

Only packages published with npm@5 or later will include a sha512.

So far, there’s no good solution to it besides, delete node_modules and package-lock.json together and re-run npm install

See community issues:

  1. https://npm.community/t/shasum-check-or-integrity-eintegrity-errors/153
  2. https://stackoverflow.com/questions/47638381/why-did-package-lock-json-change-the-integrity-hash-from-sha1-to-sha512
  3. https://stackoverflow.com/questions/47545940/when-i-run-npm-install-it-returns-with-err-code-eintegrity-npm-5-3-0

Good luck!

要查看或添加评论,请登录

Alan D.的更多文章

  • How to render linkable texts?

    How to render linkable texts?

    I was tasked to help out on a feature: from rendering a blob of text, to, if the text contains any text that is…

  • Artifacts Preview at Screwdriver for DevOps CI/CD

    Artifacts Preview at Screwdriver for DevOps CI/CD

    Finally got some time to share my slide decks at event: https://www.eventbrite.

  • How to use Docker on?Mac

    How to use Docker on?Mac

    This article is intended to be a command cheat sheet for my own. If you found it useful, good! Here’s a list of…

  • Transition from App Engineer to Infra Engineer

    Transition from App Engineer to Infra Engineer

    I’ve been working as a Software Engineer fulltime since graduation from college in 2014. Ever since I have been…

  • Solving Chrome: Your connection is not private

    Solving Chrome: Your connection is not private

    Have you ever seen something like this before when you developing your web app with self-signed certificate? Then you…

  • [Ember] Ember serve or Ember build

    [Ember] Ember serve or Ember build

    As most of us know that we can invoke ember s to run ember application. Steps are ember serve will trigger ember build…

  • Love the give back culture

    Love the give back culture

    I love the culture of Yahoo, and now Oath: Help your comrades and win gift card. Today I have won raffle by doing just…

  • How to access variables from config/environment.js

    How to access variables from config/environment.js

    Question: How to access ember config/environment.js variables from the browser? Answers: require(/config/environment)…

  • [Advertisement] Getting started to know the terms

    [Advertisement] Getting started to know the terms

    Big companies make money by serving people advertisements, in Yahoo we server to our 145M+ daily users. There are the…

  • [Ember] Ember serve or Ember build

    [Ember] Ember serve or Ember build

    As most of us know that we can invoke ember s to run ember application. Steps are ember serve will trigger ember build…

社区洞察