关于 Error: Node Sass does not yet support your current environment: Windows 64-b解决办法

此错误说明当前node-sass版本在当前环境运行不了,解决办法如下:

1.卸载当前node-sass版本

npm uninstall --save node-sass

2.重新安装node-sass

npm install --save node-sass

如果安装报错,使用淘宝镜像安装

npm install cnpm -g --registry=https://registry.npm.taobao.org

如果报错:

Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.

此错误是node-sass版本过高,安装指定版本的node-sass

1.卸载:

npm uninstall node-sass

2.安装:

npm install [email protected]

3.运行

npm run serve

猜你喜欢

转载自blog.csdn.net/Danelxiong/article/details/126420110