integrity checksum failed while creating AwesomeProject
See original GitHub issueDescription
[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
: samenpm ls expo
: samenode -v
: v8.2.1npm -v
: 5.3.0yarn --version
:bash: yarn: command not found
watchman version
: same (command not found)
Also specify:
-
Operating system: Linux dakudell 4.12.4-1-ARCH #1 SMP PREEMPT Fri Jul 28 18:54:18 UTC 2017 x86_64 GNU/Linux
-
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:
- Created 6 years ago
- Comments:15 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 4sudo 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.
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: