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。

解决方案:

1.不用回退node版本,而是升级node-sass。
update你的sass版本即可:
npm rebuild node-sass

2.或者自己手动升级:
1.先卸载
npm uninstall --save node-sass
2.清除缓存
npm cache clean -f
3.升级node-sass模块
npm install --save node-sass

安装Node Sass过程中出现需要用到python3,直接通过brew安装一个即可

npm ERR! gyp verb find Python - version is “3.8.9”

npm ERR! gyp verb find Python Python is not set from command line or npm configuration
npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
npm ERR! gyp verb find Python checking if "python3" can be used
npm ERR! gyp verb find Python - executing "python3" to get executable path
npm ERR! gyp verb find Python - executable path is "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp verb find Python - executing "/Library/Developer/CommandLineTools/usr/bin/python3" to get version
npm ERR! gyp verb find Python - version is "3.8.9"
npm ERR! gyp info find Python using Python version 3.8.9 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.14.0
npm ERR! gyp verb command install [ '16.14.0' ]
npm ERR! gyp verb install input version string "16.14.0"

直接输入

安装python
brew install python 

mac默认是2.7的python,查看,并退出
python
exit()

安装完成后,查看并退出,目前是3.8.9
python3
exit()

然后直接安装就可以了

参考:https://blog.csdn.net/yaya07755/article/details/96834875

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值