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

Packages: Unify peer dependencies between React Native packages #34801

Closed
gziolo opened this issue Sep 14, 2021 · 2 comments
Closed

Packages: Unify peer dependencies between React Native packages #34801

gziolo opened this issue Sep 14, 2021 · 2 comments
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Enhancement A suggestion for improvement.
Projects

Comments

@gziolo
Copy link
Member

gziolo commented Sep 14, 2021

Part of Upgrade node and npm to latest LTS versions.

The following warnings were reported while migrating from npm 6 to npm 7 in #33892:

npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN While resolving: @react-native-community/cli@4.12.0
npm ERR! npm WARN Found: react-native@0.64.0
npm ERR! npm WARN node_modules/react-native
npm ERR! npm WARN   dev react-native@"0.64.0" from the root project
npm ERR! npm WARN 
npm ERR! npm WARN Could not resolve dependency:
npm ERR! npm WARN peer react-native@">=0.62.0-rc.0 <0.64.0" from @react-native-community/cli@4.12.0
npm ERR! npm WARN node_modules/@react-native-community/cli
npm ERR! npm WARN   dev @react-native-community/cli@"^4.8.0" from the root project
npm ERR! npm WARN 
npm ERR! npm WARN Conflicting peer dependency: react-native@0.63.4
npm ERR! npm WARN node_modules/react-native
npm ERR! npm WARN   peer react-native@">=0.62.0-rc.0 <0.64.0" from @react-native-community/cli@4.12.0
npm ERR! npm WARN   node_modules/@react-native-community/cli
npm ERR! npm WARN     dev @react-native-community/cli@"^4.8.0" from the root project
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN While resolving: eslint-plugin-react-native@3.7.0
npm ERR! npm WARN Found: eslint@6.3.0
npm ERR! npm WARN node_modules/eslint
npm ERR! npm WARN   peer eslint@"^5.16.0 || ^6.8.0 || ^7.2.0" from eslint-config-airbnb-base@14.2.0
npm ERR! npm WARN   node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base
npm ERR! npm WARN     eslint-config-airbnb-base@"^14.0.0" from eslint-config-airbnb@18.0.1
npm ERR! npm WARN     node_modules/eslint-config-airbnb
npm ERR! npm WARN 
npm ERR! npm WARN Could not resolve dependency:
npm ERR! npm WARN peer eslint@"^3.17.0 || ^4 || ^5" from eslint-plugin-react-native@3.7.0
npm ERR! npm WARN node_modules/eslint-plugin-react-native
npm ERR! npm WARN   dev eslint-plugin-react-native@"3.7.0" from the root project
npm ERR! npm WARN 
npm ERR! npm WARN Conflicting peer dependency: eslint@5.16.0
npm ERR! npm WARN node_modules/eslint
npm ERR! npm WARN   peer eslint@"^3.17.0 || ^4 || ^5" from eslint-plugin-react-native@3.7.0
npm ERR! npm WARN   node_modules/eslint-plugin-react-native
npm ERR! npm WARN     dev eslint-plugin-react-native@"3.7.0" from the root project
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN While resolving: react-native-macos@0.60.0-microsoft.73
npm ERR! npm WARN Found: react@17.0.1
npm ERR! npm WARN node_modules/react
npm ERR! npm WARN   peer react@"16.8.6" from react-native@0.60.6
npm ERR! npm WARN   node_modules/react-native-macos/node_modules/react-native
npm ERR! npm WARN     peer react-native@"^0.60.0" from @react-native-community/cli@2.10.0
npm ERR! npm WARN     node_modules/react-native-macos/node_modules/@react-native-community/cli
npm ERR! npm WARN 
npm ERR! npm WARN Could not resolve dependency:
npm ERR! npm WARN peer react@"16.8.6" from react-native-macos@0.60.0-microsoft.73
npm ERR! npm WARN node_modules/react-native-macos
npm ERR! npm WARN   dev react-native-macos@"0.60.0-microsoft.73" from the root project
npm ERR! npm WARN 
npm ERR! npm WARN Conflicting peer dependency: react@16.8.6
npm ERR! npm WARN node_modules/react
npm ERR! npm WARN   peer react@"16.8.6" from react-native-macos@0.60.0-microsoft.73
npm ERR! npm WARN   node_modules/react-native-macos
npm ERR! npm WARN     dev react-native-macos@"0.60.0-microsoft.73" from the root project
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN While resolving: react-native-windows@0.62.17
npm ERR! npm WARN Found: react@17.0.1
npm ERR! npm WARN node_modules/react
npm ERR! npm WARN   peer react@"16.8.6" from react-native@0.60.6
npm ERR! npm WARN   node_modules/react-native-macos/node_modules/react-native
npm ERR! npm WARN     peer react-native@"^0.60.0" from @react-native-community/cli@2.10.0
npm ERR! npm WARN     node_modules/react-native-macos/node_modules/@react-native-community/cli
npm ERR! npm WARN 
npm ERR! npm WARN Could not resolve dependency:
npm ERR! npm WARN peer react@"16.11.0" from react-native-windows@0.62.17
npm ERR! npm WARN node_modules/react-native-windows
npm ERR! npm WARN   dev react-native-windows@"0.62.17" from the root project
npm ERR! npm WARN 
npm ERR! npm WARN Conflicting peer dependency: react@16.11.0
npm ERR! npm WARN node_modules/react
npm ERR! npm WARN   peer react@"16.11.0" from react-native-windows@0.62.17
npm ERR! npm WARN   node_modules/react-native-windows
npm ERR! npm WARN     dev react-native-windows@"0.62.17" from the root project
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN While resolving: react-native-windows@0.62.17
npm ERR! npm WARN Found: react-native@0.64.0
npm ERR! npm WARN node_modules/react-native
npm ERR! npm WARN   dev react-native@"0.64.0" from the root project
npm ERR! npm WARN 
npm ERR! npm WARN Could not resolve dependency:
npm ERR! npm WARN peer react-native@"^0.62.0-0" from react-native-windows@0.62.17
npm ERR! npm WARN node_modules/react-native-windows
npm ERR! npm WARN   dev react-native-windows@"0.62.17" from the root project
npm ERR! npm WARN 
npm ERR! npm WARN Conflicting peer dependency: react-native@0.62.3
npm ERR! npm WARN node_modules/react-native
npm ERR! npm WARN   peer react-native@"^0.62.0-0" from react-native-windows@0.62.17
npm ERR! npm WARN   node_modules/react-native-windows
npm ERR! npm WARN     dev react-native-windows@"0.62.17" from the root project
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN While resolving: use-subscription@1.4.1
npm ERR! npm WARN Found: react@17.0.1
npm ERR! npm WARN node_modules/react
npm ERR! npm WARN   peer react@"16.8.6" from react-native@0.60.6
npm ERR! npm WARN   node_modules/react-native-macos/node_modules/react-native
npm ERR! npm WARN     peer react-native@"^0.60.0" from @react-native-community/cli@2.10.0
npm ERR! npm WARN     node_modules/react-native-macos/node_modules/@react-native-community/cli
npm ERR! npm WARN 
npm ERR! npm WARN Could not resolve dependency:
npm ERR! npm WARN peer react@"^16.8.0" from use-subscription@1.4.1
npm ERR! npm WARN node_modules/use-subscription
npm ERR! npm WARN   use-subscription@"^1.0.0" from react-native@0.64.0
npm ERR! npm WARN   node_modules/react-native
npm ERR! npm WARN 
npm ERR! npm WARN Conflicting peer dependency: react@16.14.0
npm ERR! npm WARN node_modules/react
npm ERR! npm WARN   peer react@"^16.8.0" from use-subscription@1.4.1
npm ERR! npm WARN   node_modules/use-subscription
npm ERR! npm WARN     use-subscription@"^1.0.0" from react-native@0.64.0
npm ERR! npm WARN     node_modules/react-native

It would be great to update all the dependencies reported that use either an older version of React Native or React.

I encounter also the following error, which is related to appium:

npm ERR! npm ERR! code ENOENT
npm ERR! npm ERR! syscall chmod
npm ERR! npm ERR! path /Users/gziolo/.npm/_cacache/tmp/git-cloneDqXDtl/node_modules/appium/node_modules/.bin/authorize-ios
npm ERR! npm ERR! errno -2
npm ERR! npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/gziolo/.npm/_cacache/tmp/git-cloneDqXDtl/node_modules/appium/node_modules/.bin/authorize-ios'
npm ERR! npm ERR! enoent This is related to npm not being able to find a file.
@jordesign
Copy link
Contributor

@gziolo - just checking in on this older issue - does this still present as an issue to you?

@gziolo
Copy link
Member Author

gziolo commented Sep 14, 2023

We are now on npm 8 so it’s outdated. Let’s close it.

@gziolo gziolo closed this as completed Sep 14, 2023
Mobile Apps automation moved this from To do to Done Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Enhancement A suggestion for improvement.
Projects
Mobile Apps
  
Done
Development

No branches or pull requests

2 participants