就救啊啊,为什么npm install stylus --save npm install stylus-loader --save不行
来源:7-1 Vue项目首页 - header区域开发
慕村7601342
2021-12-24
就救啊啊,为什么npm install stylus --save npm install stylus-loader --save不行
C:\Users\Administrator\Desktop\travel>npm install stylus --save
added 7 packages, and audited 1286 packages in 15s
61 packages are looking for funding
run npm fund
for details
40 vulnerabilities (25 moderate, 15 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit
for details.
C:\Users\Administrator\Desktop\travel>npm install stylus-loader --save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: travel@1.0.0
npm ERR! Found: webpack@3.12.0
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^3.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^5.0.0" from stylus-loader@6.2.0
npm ERR! node_modules/stylus-loader
npm ERR! stylus-loader@"*" 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\Administrator\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\Administrator\AppData\Local\npm-cache_logs\2021-12-24T09_09_54_585Z-debug.log
1回答
-
Dell
2021-12-26
把你的node_modules 文件夹删除,依赖全部重新安装一次试试
062023-01-13
相似问题