question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

integrity checksum failed while creating AwesomeProject

See original GitHub issue

Description

[daku@dakudell playground]$ create-react-native-app AwesomeProject
Creating a new React Native app in /home/daku/Development/playground/AwesomeProject.

Using package manager as npm with npm interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...

npm WARN react-redux@5.0.6 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none was installed.

npm ERR! code EINTEGRITY
npm ERR! sha1-VpwFCRi+ZIazg3VSAorgRmtxcIY= integrity checksum failed when using sha1: wanted sha1-VpwFCRi+ZIazg3VSAorgRmtxcIY= but got sha1-kCrBab3IKS6lEN/qOtED1z4c+z4=. (48628 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/daku/.npm/_logs/2017-08-09T22_43_27_438Z-debug.log
`npm install --save-dev --save-exact react-native-scripts` failed
[daku@dakudell playground]$ ^C
[daku@dakudell playground]$ 

Expected Behavior

AwesomeProject is created without errors

Observed Behavior

AwesomeProject folder created, but with failures

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts:
/home/daku/Development/playground
└── (empty)
  • npm ls react-native: same
  • npm ls expo: same
  • node -v: v8.2.1
  • npm -v: 5.3.0
  • yarn --version: bash: yarn: command not found
  • watchman version: same (command not found)

Also specify:

  1. Operating system: Linux dakudell 4.12.4-1-ARCH #1 SMP PREEMPT Fri Jul 28 18:54:18 UTC 2017 x86_64 GNU/Linux

  2. Phone/emulator/simulator & version:

Reproducible Demo

Please provide a minimized reproducible demonstration of the problem you’re reporting.

Issues that come with minimal repro’s are resolved much more quickly than issues where a maintainer has to reproduce themselves.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
kpacharcommented, Aug 15, 2017

I got around the problem by installing react, react-redux, and react-native-scripts manually and then running the same command (create-react-native-app) npm install -g react npm install -g react-redux npm install -g react-native-scripts After I did that, it errored out saying that I have npm 5 but it needs npm 4. So I downgraded npm to the last of the version 4 sudo npm install -g npm@4.6.1

p.s. After all this, it took a really long time to run the create-react-native-app but running it with --verbose option helped speed it up and it succeeded.

1reaction
baptistemansoncommented, Aug 17, 2017

I’m glad it helped you moving forward. I would advice to give up on npm 5 altogether and downgrade to npm 4 or even switch to yarn. Installing react, react-redux globally will cause you other conflicts later when you will want to upgrade, or start another project. If you are in a hurry, you can just try:

yarn create react-native-app test-rn
Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Fix npm ERR! code EINTEGRITY, integrity ...
Clean npm cache, node_modules, package-lock.json files to recover from all 'npm ERR! code EINTEGRITY' error messages during 'npm install'
Read more >
ARTIFACTORY: NPM-integrity checksum failed when using ...
While installing the NPM package sometimes,we would notice checksum integrity failure messages. This error can occur due to few root causes.
Read more >
Why is npm throwing the error "checksum failed while ...
Checked the path OS path variables, and the directory where node is installed. Found nothing. Tried to clean npm and uninstalling and installing...
Read more >
nodejs-mobile/community - Gitter
Trying to get the nodejs-mobile-react-native out with it before making an announcement. André Staltz ... integrity checksum failed when using sha512: wanted ...
Read more >
How to fix npm err code EINTEGRITY issue - Nathan Sebhastian
npm integrity checksum error explained. When running the npm install command, you may see the process failed with EINTEGRITY error code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found