Vue学习笔记之Node Sass version 8.0.0 is incompatible with 4.0.0错误

发布时间 2023-04-24 10:18:22作者: 时光飞逝,逝者如斯

输入以下两个命令:

npm uninstall node-sass

npm i -D sass

注:Mac环境如果进行了系统升级,需要重新安装Xcode,执行命令

xcode-select install

不然会出现如下的错误

Mac 解决 gyp: No Xcode or CLT version detected! 报错

 

如果出现python2的错误

gyp verb `which` failed Error: not found: python2

去官网下载安装python2.7的包即可;

 

关联错误: 

Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (93)