Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails when using React Native nightly builds #1318

Closed
brunolemos opened this issue Nov 20, 2020 · 2 comments · Fixed by #1319
Closed

Install fails when using React Native nightly builds #1318

brunolemos opened this issue Nov 20, 2020 · 2 comments · Fixed by #1319

Comments

@brunolemos
Copy link
Contributor

brunolemos commented Nov 20, 2020

Environment

Expand
System:
    OS: macOS 11.0.1
    CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
    Memory: 717.03 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.2.1 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.0.8 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0 - /Users/brunolemos/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
    Android SDK:
      API Levels: 28
      Build Tools: 28.0.3
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.6858069
    Xcode: 12.2/12B45b - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_202 - /usr/bin/javac
    Python: 2.7.17 - /usr/local/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Note: npm 7. Not using yarn because I want to try the workspaces feature from npm instead.
yarn doesn't care much if the peer dependency was not found, but npm 7 is failing the whole install command

Description

npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react-native@undefined
npm WARN node_modules/react-native/node_modules/react-native
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react-native@">=0.64.0-rc.0" from @react-native-community/cli@5.0.1-alpha.0
npm WARN node_modules/react-native/node_modules/@react-native-community/cli
npm WARN   @react-native-community/cli@"^5.0.1-alpha.0" from react-native@0.0.0-00e623ddb
npm WARN   node_modules/react-native
npm ERR! code ETARGET
npm ERR! notarget No matching version found for react-native@>=0.64.0-rc.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Reproducible Demo

npx react-native init mobile --version 0.0.0-00e623ddb
cd mobile
npm install
@brunolemos
Copy link
Contributor Author

Workaround: npm install --legacy-peer-deps

@brunolemos
Copy link
Contributor Author

brunolemos commented Nov 20, 2020

I give up npm 7 and nightly builds for now, each time a different error. Went back to yarn and stable build.

grabbou pushed a commit that referenced this issue Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant