Version Issue in integrating mobx-react in app - node.js

I received this error for my app sample-login-page while running npm update
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: sample-login-page#1.0.0
npm ERR! Found: mobx-react#5.4.4
npm ERR! node_modules/mobx-react
npm ERR! mobx-react#"5.4.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer mobx-react#"^4.3.5" from bernie-core#0.41.4
npm ERR! node_modules/bernie-core
npm ERR! peer bernie-core#">=0.24.7" from bernie-test-util#0.35.4
npm ERR! node_modules/bernie-test-util
npm ERR! dev bernie-test-util#"0.35.4" from the root project
npm ERR! peer bernie-core#">=0.25.0" from #gc/global-controls-store#0.1.3
npm ERR! node_modules/#gc/global-controls-store
npm ERR! #gc/global-controls-store#"^0.1.3" from the root project
npm ERR! 1 more (bernie-test-util)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
After upgrading mobx-react by npm install mobx-react --save I came up with same errors.
After installing mobx-react with specifically required version npm i mobx-react#4.3.5. Below error is coming up
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: sample-login-page#1.0.0
npm ERR! Found: mobx#4.15.4
npm ERR! node_modules/mobx
npm ERR! mobx#"4.15.4" from the root project
npm ERR! peer mobx#"^3.4.1 || ^4.0.0" from bernie-core#0.41.4
npm ERR! node_modules/bernie-core
npm ERR! peer bernie-core#">=0.24.7" from bernie-test-util#0.35.4
npm ERR! node_modules/bernie-test-util
npm ERR! dev bernie-test-util#"0.35.4" from the root project
npm ERR! peer bernie-core#">=0.25.0" from #gc/global-controls-store#0.1.3
npm ERR! node_modules/#gc/global-controls-store
npm ERR! #gc/global-controls-store#"^0.1.3" from the root project
npm ERR! 1 more (bernie-test-util)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer mobx#"^2.6.3 || ^3.0.0" from mobx-react#4.3.5
npm ERR! node_modules/mobx-react
npm ERR! mobx-react#"4.3.5" from the root project
npm ERR! peer mobx-react#"^4.3.5" from bernie-test-util#0.35.4
npm ERR! node_modules/bernie-test-util
npm ERR! dev bernie-test-util#"0.35.4" from the root project
npm ERR! 2 more (#gc/global-controls-store, bernie-core)
Can someone help me out with suggestions around this?

You can run this :
npm install mobx-react --save --legacy-peer-deps

Related

Stylint error on installing node_modules. Even while running npm start this error keep arrising

Whenever I try to install modules for the project it pops up an error for stylelint.
There is no error in code and even after removing stylelint I am unable to solve this issue
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: stylelint-custom-processor-loader#0.2.1
npm ERR! Found: stylelint#14.11.0
npm ERR! node_modules/stylelint
npm ERR! peer stylelint#"^14.10.0" from stylelint-config-recommended#9.0.0
npm ERR! node_modules/stylelint-config-recommended
npm ERR! dev stylelint-config-recommended#"9.0.0" from the root project
npm ERR! peer stylelint#"^13.0.0 || ^14.0.0" from vite-plugin-stylelint#3.0.7
npm ERR! node_modules/vite-plugin-stylelint
npm ERR! dev vite-plugin-stylelint#"^3.0.7" from the root project
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer stylelint#"^8.0.0" from stylelint-custom-processor-loader#0.2.1
npm ERR! node_modules/stylelint-custom-processor-loader
npm ERR! dev stylelint-custom-processor-loader#"^0.2.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: stylelint#8.4.0
npm ERR! node_modules/stylelint
npm ERR! peer stylelint#"^8.0.0" from stylelint-custom-processor-loader#0.2.1
npm ERR! node_modules/stylelint-custom-processor-loader
npm ERR! dev stylelint-custom-processor-loader#"^0.2.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 C:\Users\nitin\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\nitin\AppData\Local\npm-cache\_logs\2022-11-13T11_31_25_207Z-debug-0.log

My React App is giving this error whenever I try to install any dependencies?

React App is giving this error whenever i try to install any dependency and also tried
uninstall and reinstall NodeJs but its not working. Its very difficult to distinguish error whats happening.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-dfb#1.0.4
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! peer react#"*" from #testing-library/react#11.2.7
npm ERR! node_modules/#testing-library/react
npm ERR! #testing-library/react#"^11.2.7" from the root project
npm ERR! peer react#"^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" from mini-create-react-context#0.4.1
npm ERR! node_modules/mini-create-react-context
npm ERR! mini-create-react-context#"^0.4.0" from react-router#5.2.0
npm ERR! node_modules/react-router
npm ERR! react-router#"5.2.0" from react-router-dom#5.2.0
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom#"^5.2.0" from the root project
npm ERR! 10 more (react-device-detect, react-dom, react-h5-audio-player, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"~16.0.0" from react-dfb#1.0.4
npm ERR! node_modules/react-dfb
npm ERR! react-dfb#"^1.0.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#16.0.0
npm ERR! node_modules/react
npm ERR! peer react#"~16.0.0" from react-dfb#1.0.4
npm ERR! node_modules/react-dfb
npm ERR! react-dfb#"^1.0.4" 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\Md Yasin Ansari\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\Md Yasin Ansari\AppData\Local\npm-cache\_logs\2022-11-13T12_55_52_296Z-debug-0.log

yarn react native project with npm

I have an existing project that installs already with yarn and I was trying to install npm but I faced this errors
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: NamalWoocommerce#0.0.1
npm ERR! Found: react-native#0.63.3
npm ERR! node_modules/react-native
npm ERR! react-native#"0.63.3" from the root project
npm ERR! peer react-native#"*" from react-native-render-html#4.2.5
npm ERR! node_modules/react-native-render-html
npm ERR! react-native-render-html#"^4.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native#">=0.60 <0.62" from react-native-webview#8.2.1
npm ERR! node_modules/react-native-webview
npm ERR! react-native-webview#"^8.0.4" from the root project
npm ERR! peer react-native-webview#"*" from react-native-render-html#4.2.5
npm ERR! node_modules/react-native-render-html
npm ERR! react-native-render-html#"^4.2.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\Ahmed Al-sudairy\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\Ahmed Al-sudairy\AppData\Local\npm-cache\_logs\2022-09-17T07_45_05_943Z-debug-0.log
I deleted yarn.lock but I faced same issue

I am trying to upgrade angular 12 to 14 but I am getting this issue in GitLab pipeline ng-toolkit/universal

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: #ng-toolkit/universal#8.0.3
npm ERR! Found: #angular/common#14.1.0
npm ERR! node_modules/#angular/common
npm ERR! #angular/common#"^14.1.0" from the root project
npm ERR! peer #angular/common#"^14.0.0 || ^15.0.0" from #angular/cdk#14.1.0
npm ERR! node_modules/#angular/cdk
npm ERR! #angular/cdk#"^14.1.0" from the root project
npm ERR! peer #angular/cdk#"14.1.0" from #angular/material#14.1.0
npm ERR! node_modules/#angular/material
npm ERR! #angular/material#"^14.1.0" from the root project
npm ERR! 13 more (#angular/forms, #angular/material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #angular/common#"^8.2.6" from #ng-toolkit/universal#8.0.3
npm ERR! node_modules/#ng-toolkit/universal
npm ERR! #ng-toolkit/universal#"^8.0.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: #angular/common#8.2.14
npm ERR! node_modules/#angular/common
npm ERR! peer #angular/common#"^8.2.6" from #ng-toolkit/universal#8.0.3
npm ERR! node_modules/#ng-toolkit/universal
npm ERR! #ng-toolkit/universal#"^8.0.3" 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 /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-09-11T07_44_47_296Z-debug-0.l
I am getting this error in pipeline, but local build working fine.
Node v16 and Angular 14.
This package #ng-toolkit/universal is far behind the current version of angular.
You should use #nguniversal instead: https://angular.io/guide/universal

Installing nest/terminus gives dependency tree error

Whenever I try to install nest/terminus
npm i #nestjs/terminus
I get the following error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: typeorm#0.3.7
npm ERR! Found: ioredis#4.28.5
npm ERR! node_modules/ioredis
npm ERR! peer ioredis#"^4.0.0" from #nestjs-modules/ioredis#1.0.1
npm ERR! node_modules/#nestjs-modules/ioredis
npm ERR! #nestjs-modules/ioredis#"^1.0.1" from the root project
npm ERR! ioredis#"^4.28.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional ioredis#"^5.0.4" from typeorm#0.3.7
npm ERR! node_modules/typeorm
npm ERR! peertypeorm#"^0.3.0" from #nestjs/typeorm#8.1.4
npm ERR! node_modules/#nestjs/typeorm
npm ERR! #nestjs/typeorm#"^8.1.4" from the root project
npm ERR! typeorm#"^0.3.7" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: ioredis#5.2.1
npm ERR! node_modules/ioredis
npm ERR! peerOptional ioredis#"^5.0.4" from typeorm#0.3.7
npm ERR! node_modules/typeorm
npm ERR! peer typeorm#"^0.3.0" from #nestjs/typeorm#8.1.4
npm ERR! node_modules/#nestjs/typeorm
npm ERR! #nestjs/typeorm#"^8.1.4" from the root project
npm ERR! typeorm#"^0.3.7" 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.
I tried running the following command
npm install --save --legacy-peer-deps
it ran okay, but on repeating the terminus installation I got the same error. Any idea what I might be doing wrong?

Resources