美文网首页
run `npm audit fix` to fix them,

run `npm audit fix` to fix them,

作者: 香烟不灭 | 来源:发表于2021-10-09 15:31 被阅读0次

1.出现 run npm audit fix to fix them, or npm audit for details
基本上是npm 版本太高了 npm -v 可以查看版本,

image.png

删除node_modules文件 和 package-lock.json
然后运行 npm install --no-fund --no-audit

2.然后出现Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.


image.png

是node-sass版本过高,需要卸载重装低版本
1、卸载: npm uninstall node-sass

2、安装: npm install node-sass@4.14.1

3、运行:npm run dev

解决。

相关文章

网友评论

      本文标题:run `npm audit fix` to fix them,

      本文链接:https://www.haomeiwen.com/subject/llmqoltx.html