Node Sass could not find a binding for your current environment:windows 64-bit with Node.js 16.x

其实报错信息写的很清楚了,在那个路径下没有binding.node这个文件,按路径看一下就会发现那个文件夹下是空的。 之前没看清提示,就按搜索的设置sass路径( set SASS_BINARY_PATH=D:/win32-x64-64_binding.node)设置半天也没好使。 解决办法: 在https://github.com/sass/node-sass/releases地址下载win32-x64-93_binding.node文件,修改文件名为binding.node放在提示的文件夹内 你的项目/node_modules/node-sass/vendor/
再次运行,可以会提示
Error:Node Sass version 6.0.0 is incompatible with ^4.0.0

还是版本不兼容,需要降低node-sass版本到v4.14.1 卸载node-sass,重新安装即可

Node Sass could not find a binding for your current environment:windows 64-bit with Node.js 16.x最先出现在Python成神之路

版权声明:
作者:lichengxin
链接:https://www.techfm.club/p/22561.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>