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

一、报错情况

本地运行前端项目时,报这个错误。

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

二、问题排查

经排查,发现针对mac系统,有指定的node版本,https://github.com/sass/node-sass/releases/tag/v4.13.1,mac最高支持node13,而我新安装的Node版本已经到了15,所以只能使用nvm选择指定的node版本。

三、解决方案

MAC安装nvm,参考:https://www.cnblogs.com/giggle/p/7075548.html

然后使用nvm安装指定的node

nvm install 12.16.2

brew install nvm


1.需要先指定node版本
nvm use 12.16.2

2.安装指定包
npm install

3.运行
npm run dev

猜你喜欢

转载自blog.csdn.net/muyimo/article/details/111035771