packagex-io / bubbles-react-native

A React Native UI Kit
MIT License
1 stars 1 forks source link

NPM install not working. #19

Closed aikhan79 closed 1 year ago

aikhan79 commented 2 years ago

npm i npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: @reach/router@1.3.4 npm WARN Found: react@17.0.2 npm WARN node_modules/react npm WARN react@"17.0.2" from the root project npm WARN 39 more (@callstack/react-theme-provider, @emotion/core, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/router@1.3.4 npm WARN node_modules/@reach/router npm WARN @reach/router@"^1.2.1" from @storybook/api@5.3.21 npm WARN node_modules/@storybook/api npm WARN 1 more (@storybook/router) npm WARN npm WARN Conflicting peer dependency: react@16.14.0 npm WARN node_modules/react npm WARN peer react@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/router@1.3.4 npm WARN node_modules/@reach/router npm WARN @reach/router@"^1.2.1" from @storybook/api@5.3.21 npm WARN node_modules/@storybook/api npm WARN 1 more (@storybook/router) npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: @reach/router@1.3.4 npm WARN Found: react-dom@17.0.2 npm WARN node_modules/react-dom npm WARN dev react-dom@"^17.0.2" from the root project npm WARN 7 more (@storybook/core, @storybook/router, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react-dom@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/router@1.3.4 npm WARN node_modules/@reach/router npm WARN @reach/router@"^1.2.1" from @storybook/api@5.3.21 npm WARN node_modules/@storybook/api npm WARN 1 more (@storybook/router) npm WARN npm WARN Conflicting peer dependency: react-dom@16.14.0 npm WARN node_modules/react-dom npm WARN peer react-dom@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/router@1.3.4 npm WARN node_modules/@reach/router npm WARN @reach/router@"^1.2.1" from @storybook/api@5.3.21 npm WARN node_modules/@storybook/api npm WARN 1 more (@storybook/router) npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @react-native-community/async-storage@1.12.1 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"17.0.2" from the root project npm ERR! peer react@">=16.3.0" from @callstack/react-theme-provider@3.0.7 npm ERR! node_modules/@callstack/react-theme-provider npm ERR! @callstack/react-theme-provider@"^3.0.7" from the root project npm ERR! 38 more (@emotion/core, @emotion/primitives-core, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8" from @react-native-community/async-storage@1.12.1 npm ERR! node_modules/@react-native-community/async-storage npm ERR! dev @react-native-community/async-storage@"^1.12.1" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@16.14.0 npm ERR! node_modules/react npm ERR! peer react@"^16.8" from @react-native-community/async-storage@1.12.1 npm ERR! node_modules/@react-native-community/async-storage npm ERR! dev @react-native-community/async-storage@"^1.12.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/aikhan/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/aikhan/.npm/_logs/2022-10-12T07_46_00_513Z-debug-0.log

clearly-outsane commented 2 years ago

I haven't been able to replicate this on my machine. I think you can just do npm i --force

brycejwalter commented 2 years ago

Yeah, I know that is what you do but if you force it to update then does it update for other projects that they may have?

On Thu, Oct 13, 2022 at 10:09 AM Vinay @.***> wrote:

I haven't been able to replicate this on my machine. I think you can just do npm i --force

— Reply to this email directly, view it on GitHub https://github.com/packagex-io/bubbles-react-native/issues/19#issuecomment-1277675048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2TG5YIDVZ3C23AN6PXZJTWDAJX3ANCNFSM6AAAAAARDAFTVE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

clearly-outsane commented 2 years ago

Why would it affect other projects?

brycejwalter commented 2 years ago

Are all NPM packages installed on a local level? Or are some NPM about you just installed at the global level?

If certain packages do install at the global level, and they have a different package that runs for a different project on their system this might cause an issue?

Could be wrong.

On Fri, Oct 14, 2022 at 1:14 AM Vinay @.***> wrote:

Why would it affect other projects?

— Reply to this email directly, view it on GitHub https://github.com/packagex-io/bubbles-react-native/issues/19#issuecomment-1278493706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2TG53BKVVHZIGCATEZCC3WDDTZTANCNFSM6AAAAAARDAFTVE . You are receiving this because you commented.Message ID: @.***>

vpanyushenko commented 2 years ago

@aikhan79 was this resolved?

aikhan79 commented 2 years ago

Still the same. aikhan@VX-LT-0218:~/packagex/bubbles-react-native$ npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: projectx@0.0.1 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8" from @react-native-community/async-storage@1.12.1 npm ERR! node_modules/@react-native-community/async-storage npm ERR! dev @react-native-community/async-storage@"^1.12.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/aikhan/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/aikhan/.npm/_logs/2022-10-27T10_49_38_406Z-debug-0.log

clearly-outsane commented 2 years ago

The ones here are mostly dev dependencies which are local so it should be okay @brycejwalter

clearly-outsane commented 2 years ago

@aikhan79 please try it with --force or --legacy-peer-deps. You can try other package managers like yarn if you can't get it to work with npm. I'm closing this for now, feel free to reopen it if you've tried that and it still doesn't work

clearly-outsane commented 1 year ago

@aikhan79 @vpanyushenko Hey guys, I just recreated the project with all the latest things so we won't have this issue anymore! Now we have a monorepo for both the mobile and android storybooks; I've updated the README for instructions