android version build fine, with ios I get this error in the install dependencies phase
Running npm in the root dir of your repository
[stderr] npm
[stderr] WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[stderr] npm WARN
[stderr] deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[stderr] npm WARN
[stderr] deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
[stderr] npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[stderr] npm WARN
[stderr] deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
[stderr] npm
[stderr] WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
[stderr] npm
[stderr] WARN tar zlib: incorrect data check
[stderr] npm
[stderr] WARN tarball tarball data for @react-navigation/elements@http://10.254.24.9:4873/@react-navigation/elements/-/elements-1.2.1.tgz (sha512-EnmAbKMsptrliRKf95rdgS6BhMjML+mIns06+G1Vdih6BrEo7/0iytThUv3WBf99AI76dyEq/cqLUwHPiFzXWg==) seems to be corrupted. Trying again.
[stderr] npm WARN tar zlib: incorrect data check
[stderr] npm WARN tarball tarball data for @react-navigation/elements@http://10.254.24.9:4873/@react-navigation/elements/-/elements-1.2.1.tgz (sha512-EnmAbKMsptrliRKf95rdgS6BhMjML+mIns06+G1Vdih6BrEo7/0iytThUv3WBf99AI76dyEq/cqLUwHPiFzXWg==) seems to be corrupted. Trying again.
[stderr] npm
[stderr] WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/Users/expo/workingdir/build/node_modules/@react-navigation/elements/lib/module/Header/getDefaultHeaderHeight.js'
[stderr] npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/Users/expo/workingdir/build/node_modules/@react-navigation/elements/lib/commonjs/Header/getHeaderTitle.js'
....
it goes on probably many TAR_ENTRY_ERROR errors
retried and got the same issue
build link for reference:
After clearing cache, yarn install is still failing locally.
Running “yarn why colors” gives output:
Found "colors@1.4.2"
info Reasons this module exists
- "react-native#react-native-codegen#jscodeshift" depends on it
- Hoisted from "react-native#react-native-codegen#jscodeshift#colors"
How would I resolve this being it is a dependency of another package?
Thanks! I tried clearing the npm cache, deleted the node_modules folder and ran npm install and was able to get a successful build.
The problem occurred when I changed my Bundle ID and Name to that of an existing app that I want to replace. Running a build here led to the errors I received, which persisted even when I reverted to the previous values for Bundle Id and Name - and then eventually solved when I cleared out NPM.