Node Sass version 5.0.0 is incompatible with^4.0.0
发布日期:2021-05-14 09:31:43 浏览次数:14 分类:博客文章

本文共 348 字,大约阅读时间需要 1 分钟。

Node Sass version 5.0.0 is incompatible with^4.0.0

在执行npm run dev 后项目报了 Node Sass version 5.0.0 is incompatible with^4.0.0 这个错误,很明显是Sass 的版本过高,因此需要对 Sass的版本降级为4.0版本。

Sass 版本:

Node 对应 Sass版本:

Node版本:

1、卸载原 Sass

npm uninstall node-sass

2、安装对应版本 Sass

npm install node-sass@版本

我下载的版本是4.12.0,所以命令为

npm install node-sass@4.12.0

再次执行 npm run dev, 发现问题已解决。

上一篇:JS 两个等号(==)与三个等号(===)的区别
下一篇:Vue v-html 的使用

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年05月03日 07时16分24秒