运行出现以下错误是由于npm版本过高导至的。

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: mf-turbinemonitor2@0.0.0 npm ERR! Found: stylelint@15.4.0 npm ERR! node_modules/stylelint npm ERR!   dev stylelint@"^15.4.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer stylelint@">= 11.x < 15" from stylelint-config-prettier@9.0.5 npm ERR! node_modules/stylelint-config-prettier npm ERR!   dev stylelint-config-prettier@"^9.0.5" 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! C:\Users\zhang\AppData\Local\npm-cache\_logs\2024-04-03T09_53_27_294Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\zhang\AppData\Local\npm-cache\_logs\2024-04-03T09_53_27_294Z-debug-0.log

 解决办法:  npx -p npm@6 npm i --legacy-peer-deps

 

文章来源

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: