Npm install is installing parttial packages and then throwing error - npm

PS D:\Latest_Workspace\LLA-monorepo> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: lla#1.0.0
npm ERR! Found: #angular/core#12.2.13
npm ERR! node_modules/#angular/core
npm ERR! #angular/core#"12.2.13" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #angular/core#"^11.0.0" from #ngrx/effects#11.0.0
npm ERR! #ngrx/effects#"11.0.0" 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 C:\Users\ravishankar.c.PRODAPT\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ravishankar.c.PRODAPT\AppData\Local\npm-cache_logs\2022-01-31T18_22_27_563Z-debug.log

Try using --force or --legacy-peer-deps flag. If that does not work try downgrading your npm version.
Check out here

Related

React Native deck swiper library not working

I am trying to install the react native deck swiper using npm and I am getting the following error. Guys is the something wrong with this library "npm install react-native-deck-swiper" and if there is how do we fix it?
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-native-deck-swiper#2.0.8
npm ERR! Found: react-native#0.69.5
npm ERR! node_modules/react-native
npm ERR! peer react-native#"" from #react-native-community/cli#8.0.6
npm ERR! node_modules/#react-native-community/cli
npm ERR! #react-native-community/cli#"^8.0.4" from react-native#0.69.5
npm ERR! peer react-native#"" from #react-navigation/elements#1.3.5
npm ERR! node_modules/#react-navigation/elements
npm ERR! #react-navigation/elements#"^1.3.5" from #react-navigation/native-stack#6.8.0
npm ERR! node_modules/#react-navigation/native-stack
npm ERR! #react-navigation/native-stack#"^6.8.0" from the root project
npm ERR! 6 more (#react-navigation/native, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native#"^0.49.1" from react-native-deck-swiper#2.0.8
npm ERR! node_modules/react-native-deck-swiper
npm ERR! react-native-deck-swiper#"^2.0.8" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react-native#0.49.5
npm ERR! node_modules/react-native
npm ERR! peer react-native#"^0.49.1" from react-native-deck-swiper#2.0.8
npm ERR! node_modules/react-native-deck-swiper
npm ERR! react-native-deck-swiper#"^2.0.8" 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 C:\Users\Leago\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Leago\AppData\Local\npm-cache_logs\2022-08-31T23_17_27_722Z-debug-0.log
I had the same issue as you, I found out it's more related to the command npm, apparently it works with yarn.
You can check these two links in which the problem is treated, but I don't think forcing the installation with npm install --force is a good idea:
React-native-deck-swiper unable to install
https://github.com/alexbrillant/react-native-deck-swiper/issues/337

when i run command 'npm i react-navigation-drawer' it show errror help me

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: gamezone1#1.0.0
npm ERR! Found: react-native-gesture-handler#2.2.1
npm ERR! node_modules/react-native-gesture-handler
npm ERR! react-native-gesture-handler#"~2.2.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-gesture-handler#"^1.0.12" from react-navigation-drawer#2.7.2
npm ERR! node_modules/react-navigation-drawer
npm ERR! react-navigation-drawer#"*" 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 C:\Users\Maria\AppData\Local\npm-cache\eresolve-report.txt for a full
report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Maria\AppData\Local\npm-cache_logs\2022-08-04T05_25_21_285Z-debug-0.log
try this,
npm i react-navigation-drawer --legacy-peer-deps

ERESOLVE unable to resolve dependency tree for Bottom-tabs

i am trying to install react-navigation/bottom-tabs and i keep getting this following error
PS C:\Users\chuy\LaYa> npm install #react-navigation/bottom-tabs
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined#undefined
npm ERR! Found: #react-navigation/native#5.9.8
npm ERR! node_modules/#react-navigation/native
npm ERR! #react-navigation/native#"^5.9.8" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #react-navigation/native#"^6.0.0" from #react-navigation/bottom-tabs#6.0.5
npm ERR! node_modules/#react-navigation/bottom-tabs
npm ERR! #react-navigation/bottom-tabs#"*" 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 C:\Users\chuy\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\chuy\AppData\Local\npm-cache\_logs\2021-09-01T01_09_31_834Z-debug.log
I had the same problem. This issue is related to the Expo version. I was unable to update the version, so I created a new project and moved everything there files.

error on install native-base in my project

npm install native-base
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react#16.13.1
npm ERR! node_modules/react
npm ERR! peer react#"^16.13.1" from react-dom#16.13.1
npm ERR! node_modules/react-dom
npm ERR! peer react-dom#">=16.5.1" from react-native-web#0.13.18
npm ERR! node_modules/react-native-web
npm ERR! react-native-web#"~0.13.12" from the root project
npm ERR! react-dom#"16.13.1" from the root project
npm ERR! peer react#"16.13.1" from react-native#0.63.2
npm ERR! node_modules/react-native
npm ERR! peer react-native#">=0.62.0-rc.0 <0.64.0" from #react-native-community/cli#4.14.0
npm ERR! node_modules/#react-native-community/cli
npm ERR! #react-native-community/cli#"^4.14.0" from react-native#0.63.2
npm ERR! peer react-native#"*" from react-native-safe-area-context#3.2.0
npm ERR! node_modules/react-native-safe-area-context
npm ERR! react-native-safe-area-context#"3.2.0" from expo#41.0.1
npm ERR! node_modules/expo
npm ERR! expo#"~41.0.1" from the root project
npm ERR! 3 more (the root project, native-base, #codler/react-native-keyboard-aware-scroll-view)
npm ERR! 5 more (react-native-safe-area-context, react-native-web, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"17.0.1" from react-native-windows#0.64.4
npm ERR! node_modules/native-base/node_modules/react-native-windows
npm ERR! peer react-native-windows#">=0.62" from #react-native-community/datetimepicker#3.4.7
npm ERR! node_modules/native-base/node_modules/#react-native-community/datetimepicker
npm ERR! #react-native-community/datetimepicker#"^3.0.2" from native-base#2.15.2
npm ERR! node_modules/native-base
npm ERR! native-base#"*" 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 /Users/idanknafo/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/idanknafo/.npm/_logs/2021-04-26T15_35_25_621Z-debug.log
Hello everyone I am trying to install the native-base directory and I get this error anyone know how to fix this? Thanks in advance!
If that helps i am working on macbook pro m1
This command may solve your problem:
npm install native-base --force
or
npm install native-base --legacy-peer-deps
I faced this problem today, so I used yarn add native-base instead of npm.

how to solve version error createStackNavigator?

E:\react_test\first\Test>npm install #react-navigation/stack
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: Test#0.0.1
npm ERR! Found: #react-navigation/native#5.9.3
npm ERR! node_modules/#react-navigation/native
npm ERR! #react-navigation/native#"^5.9.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #react-navigation/native#"^6.0.0" from #react-navigation/stack#6.0.0-next.6
npm ERR! node_modules/#react-navigation/stack
npm ERR! #react-navigation/stack#"^6.0.0-next.6" 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 C:\Users\BISHAWJIT\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\BISHAWJIT\AppData\Local\npm-cache\_logs\2021-03-17T05_20_15_312Z-debug.log
remove old package try this package
yarn add #react-navigation/stack