我试图安装一个网站的依赖性,我得到了这个错误,我无法解决以下一些已经发布的解决方案。
这是错误。提前谢谢你的帮助。
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: samar@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0 || ^15.0.0" from react-rangeslider@2.2.0
npm ERR! node_modules/react-rangeslider
npm ERR! react-rangeslider@"^2.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 /home/intelligentica/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/intelligentica/.npm/_logs/2022-03-23T15_30_51_251Z-debug-0.logpackage.json文件就在这里。
{
"name": "samar",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 5000",
"build": "next build",
"start": "next start",
"sass": "node-sass --watch scss/main.scss css/style.css --source-map css/style.css.map"
},
"dependencies": {
"moment": "^2.29.1",
"next": "^10.0.6",
"node-sass": "^5.0.0",
"react": "^17.0.1",
"react-bootstrap": "^1.5.0",
"react-countup": "^4.3.3",
"react-dom": "^17.0.1",
"react-google-recaptcha": "^2.1.0",
"react-modal-video": "^1.2.6",
"react-rangeslider": "^2.2.0",
"react-router-dom": "^5.2.0",
"react-scroll-to-top": "^1.0.5",
"react-slick": "^0.28.0",
"react-visibility-sensor": "^5.1.1",
"simple-react-lightbox": "^3.6.6",
"slick-carousel": "^1.8.1",
"use-scroll-position": "0.0.4",
"wowjs": "^1.1.3"
}
}发布于 2022-03-23 16:36:00
我建议您删除节点-模块文件夹,并确保通过添加
npm i packagename@latesthttps://stackoverflow.com/questions/71589971
复制相似问题