安装fastclick失败后项目运行不了
来源:1-1 课程简介

慕粉2256328599
2023-10-09
老师 我安装fastclick没有成功显示的是
94 packages are looking for funding
run `npm fund` for details
101 vulnerabilities (1 low, 65 moderate, 28 high, 7 critical)
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.
然后我就根据他的提示运行了npm audit fix 再后面npm run dev 就开始报错,没法安装上webpack-cli,这下要怎么解决呢
journey@1.0.0 dev
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
CLI for webpack must be installed.
webpack-cli (https://github.com/webpack/webpack-cli)
We will use "npm" to install the CLI via "npm install -D webpack-cli".
Do you want to install 'webpack-cli' (yes/no): y
Installing 'webpack-cli' (running 'npm install -D webpack-cli')...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: babel-loader@7.1.5
npm ERR! Found: babel-core@4.7.16
npm ERR! node_modules/babel-core
npm ERR! dev babel-core@"^4.7.16" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer babel-core@"6" from babel-loader@7.1.5
npm ERR! node_modules/babel-loader
npm ERR! dev babel-loader@"^7.1.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: babel-core@6.26.3
npm ERR! node_modules/babel-core
npm ERR! peer babel-core@"6" from babel-loader@7.1.5
npm ERR! node_modules/babel-loader
npm ERR! dev babel-loader@"^7.1.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!
npm ERR! For a full report see:
npm ERR! C:\Users\HX\AppData\Local\npm-cache\_logs\2023-10-09T05_41_43_900Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HX\AppData\Local\npm-cache\_logs\2023-10-09T05_41_43_900Z-debug-0.log
undefined
写回答
1回答
-
Dell
2023-10-20
不用这么操作,把 node_modules 全部删除,重新安装依赖再启动就可以了。
00
相似问题
安装好fastclick后 项目无法启动
回答 1
老师,“fastclick”安装不了
回答 2
fastclick安装出错
回答 1
fastclick安装报错:
回答 1
运行newVersion代码 报
回答 1