run `npm audit fix` to fix them, or `npm audit` for details 报错解决

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

解决。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容