【解决】Error: Node Sass does not yet support your current environment

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

前言:今天在做一个从另外的一台电脑环境运行的vue项目,在运行时发现报错,找了许久才解决问题。

问题原因:当前项目的node-sass版本与本机的node版本不一致导致的。

解决方案

1.先卸载node-sass

npm uninstall --save node-sass

2.再安装node-sass

npm install --save node-sass

扩展问题

重新运行时,报错Node Sass version 6.0.1 is incompatible with ^4.0.0.

再执行第3、4步即可。

3.重新卸载node-sass

cnpm uninstall node-sass

4.重新安装

cnpm i -D sass

在这里插入图片描述

最后运行成功,完美解决。

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/03d1ca8935.html