Vue运行报错:Node Sass does not yet support your current environment: Windows 64-bit

使用webstorm进行vue打包时,出现如下错误

Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72)

说是当前环境的node sass 不支持。

解决方法1:

因为使用的是淘宝映射,所以使用如下方式:

删除:

cnpm uninstall --save node-sass

安装:

cnpm install --save node-sass

运行后没有解决

解决方法2:

后来在一个博客中需要修改sass的版本,所以就查询本地package.json中node-sass的版本为:"node-sass": "^4.7.2",

而查看cmd命令安装时的node-sass 版本为:4.13.0 ,试着把package.json中node-sass版本改为:"node-sass": "^4.13.0",,

在webStorm中会重新下载,下载成功后,再执行,问题解决

 
发布了69 篇原创文章 · 获赞 52 · 访问量 14万+

猜你喜欢

转载自blog.csdn.net/xzj80927/article/details/103633370