unable to resolve dependency tree in react-redux - react-redux

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: quora2.0#0.1.0
npm ERR! Found: react#18.2.0
npm ERR! node_modules/react
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0 || ^17.0.0" from #material-ui/core#4.12.4
npm ERR! node_modules/#material-ui/core
npm ERR! #material-ui/core#"*" 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\Dell\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\Dell\AppData\Local\npm-cache_logs\2022-11-06T06_29_10_297Z-debug-0.log
PS D:\Projects\QuoraClone\quora2.0> npm i #material-ui/core
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: quora2.0#0.1.0
npm ERR! Found: react#18.2.0
npm ERR! node_modules/react
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0 || ^17.0.0" from #material-ui/core#4.12.4
npm ERR! node_modules/#material-ui/core
npm ERR! #material-ui/core#"*" 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\Dell\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\Dell\AppData\Local\npm-cache_logs\2022-11-06T06_31_22_131Z-debug-0.log
PS D:\Projects\QuoraClone\quora2.0> npm config set legacy-peer-deps true
PS D:\Projects\QuoraClone\quora2.0> npm install
npm WARN deprecated stable#0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated w3c-hr-time#1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated svgo#1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
expecting to get answers

Related

Error installing npm dependency in Laravel 8 Sail: Conflicting peer dependency: postcss

I have a laravel 8 project that I need to make changes to. I installed laravel sail to start it but I get an error trying to install npm packages:
sail npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: laravel-mix#6.0.18
npm ERR! Found: postcss#7.0.35
npm ERR! node_modules/postcss
npm ERR! postcss#"^7.0.35" from the root project
npm ERR! postcss#"^7" from #tailwindcss/postcss7-compat#2.0.3
npm ERR! node_modules/#tailwindcss/postcss7-compat
npm ERR! #tailwindcss/postcss7-compat#"^2.0.3" from the root project
npm ERR! 38 more (#types/cssnano, autoprefixer, css-declaration-sorter, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer postcss#"^8.1.2" from laravel-mix#6.0.18
npm ERR! node_modules/laravel-mix
npm ERR! dev laravel-mix#"^6.0.18" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: postcss#8.4.20
npm ERR! node_modules/postcss
npm ERR! peer postcss#"^8.1.2" from laravel-mix#6.0.18
npm ERR! node_modules/laravel-mix
npm ERR! dev laravel-mix#"^6.0.18" 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!
npm ERR! For a full report see:
npm ERR! /home/sail/.npm/_logs/2022-12-21T17_56_37_398Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /home/sail/.npm/_logs/2022-12-21T17_56_37_398Z-debug-0.log
sail node -v
v18.12.1
sail npm -v
9.2.0

Unable to install botbuilder-ai-orchestrator on my existing bot

I have created a bot with azure bot framework composer and it seems to be working fine. Now I want to add other bots as skills in it and I am required to install botbuilder-ai-orchestrator bit it is failing with the following error
Command failed: npm install --loglevel=error --save botbuilder-ai-orchestrator 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: BotName#undefined npm ERR! Found: botbuilder-dialogs-declarative#4.15.0-preview npm ERR! node_modules/botbuilder-dialogs-declarative npm ERR! peer botbuilder-dialogs-declarative#"~4.15.0-preview" from #microsoft/bot-components-teams#1.2.1 npm ERR! node_modules/#microsoft/bot-components-teams npm ERR! #microsoft/bot-components-teams#"^1.2.1" from the root project npm ERR! botbuilder-dialogs-declarative#"4.15.0-preview" from botbuilder-ai#4.15.0 npm ERR! node_modules/botbuilder-ai npm ERR! botbuilder-ai#"4.15.0" from botbuilder-ai-luis#4.15.0-preview npm ERR! node_modules/botbuilder-ai-luis npm ERR! botbuilder-ai-luis#"4.15.0-preview" from botbuilder-dialogs-adaptive-runtime#4.15.0-preview npm ERR! node_modules/botbuilder-dialogs-adaptive-runtime npm ERR! botbuilder-dialogs-adaptive-runtime#"4.15.0-preview" from botbuilder-dialogs-adaptive-runtime-integration-express#4.15.0-preview npm ERR! node_modules/botbuilder-dialogs-adaptive-runtime-integration-express npm ERR! 1 more (the root project) npm ERR! botbuilder-ai#"4.15.0" from botbuilder-ai-qna#4.15.0-preview npm ERR! node_modules/botbuilder-ai-qna npm ERR! botbuilder-ai-qna#"4.15.0-preview" from botbuilder-dialogs-adaptive-runtime#4.15.0-preview npm ERR! node_modules/botbuilder-dialogs-adaptive-runtime npm ERR! botbuilder-dialogs-adaptive-runtime#"4.15.0-preview" from botbuilder-dialogs-adaptive-runtime-integration-express#4.15.0-preview npm ERR! node_modules/botbuilder-dialogs-adaptive-runtime-integration-express npm ERR! 1 more (the root project) npm ERR! 2 more (botbuilder-dialogs-adaptive, botbuilder-dialogs-adaptive-runtime) npm ERR! npm ERR! Could not resolve dependency: npm ERR! botbuilder-ai-orchestrator#"*" from the root project npm ERR! npm ERR! Conflicting peer dependency: botbuilder-dialogs-declarative#4.16.0-preview npm ERR! node_modules/botbuilder-dialogs-declarative npm ERR! peer botbuilder-dialogs-declarative#"4.16.0-preview" from botbuilder-ai-orchestrator#4.16.0 npm ERR! node_modules/botbuilder-ai-orchestrator npm ERR! botbuilder-ai-orchestrator#"*" 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\username\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\username\AppData\Local\npm-cache\_logs\2022-07-14T10_23_29_714Z-debug-0.log
Node version installed on my machine is 16.16.0
Below is the list of dependencies already insatlled
"#microsoft/bot-components-teams": "^1.2.1",
"botbuilder-ai-luis": "4.15.0-preview",
"botbuilder-ai-qna": "4.15.0-preview",
"botbuilder-dialogs-adaptive-runtime-integration-express": "4.15.0-preview",
"cross-env": "latest"

Laravel 9 Install vue router for vue 2.6.12

I try installing vue router with run command "npm install vue-router" but then showing error like this:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined#undefined
npm ERR! Found: vue#2.6.14
npm ERR! dev vue#"^2.6.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue#"^3.2.0" from vue-router#4.0.14
npm ERR! node_modules/vue-router
npm ERR! vue-router#"*" from the root project
npm ERR!
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\ACER\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\ACER\AppData\Local\npm-cache_logs\2022-03-20T12_19_15_072Z-debug-0.log
please help
I solved it by installing vue-router#3.
npm install vue-router#3 --save
You can just try this.
Because your vue is not the latest version, it gives this error.
Use previous versions of vue-router.
To access old versions of vue-router, use the versions tab
Example : npm i vue-router#3.5.3

Error when Trying to install aglio with npm

npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.4.0+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "aglio"
npm ERR! cwd /mnt/c/Users/HEWLETT PACKARD'
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj
npm ERR! fstream_path /usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! weird error 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /mnt/c/Users/HEWLETT PACKARD'/npm-debug.log
npm ERR! not ok code 0
I am not sure about this problem. I have tried, but it is useless.
If the above error is not readable, you can see the link here.
Reference to agilo.
Resolved:
I used nvm and successfully installed aglio using node v0.12.
Discussed on the issue of github aglio
https://github.com/danielgtaylor/aglio/issues/175

Cant install cordova in my mac os x

When I am installing through terminal I got the error below
npm ERR! network getaddrinfo ENOTFOUND
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/abp2
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/abp2/npm-debug.log
npm ERR! not ok code 0
I followed many answers in this community, but still not able to install this.
According to some suggestion I have change install cordova code like that
$ sudo npm --proxy proxy-server:8080 install -g cordova
But here I am getting problem like that
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! network tunneling socket could not be established, cause=connect EHOSTUNREACH
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "--proxy" "proxy-server:8080" "install" "-g" "cordova"
npm ERR! cwd /Users/abp2
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ECONNRESET
npm ERR! not ok code 0
Thanks in advance.

Resources