admin管理员组文章数量:1612060
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/yaya07755/article/details/96834875
本文标签: SupportCurrentsassErrornode
版权声明:本文标题:Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1728627906a1166729.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论