Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 16.x
时间: 2023-10-12 11:01:41 浏览: 154
解决Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported
5星 · 资源好评率100%
回答: 报错信息表明当前环境下的Node Sass找不到与之匹配的绑定。有两种解决办法可以尝试。第一种是根据报错信息中提供的路径,确认路径下是否存在binding.node文件。如果该文件夹为空,可以在https://github.com/sass/node-sass/releases地址下载win32-x64-93_binding.node文件,并将其重命名为binding.node,然后将其放置在提示的文件夹内(你的项目\node_modules\node-sass\vendor\)。这样Node Sass就能找到正确的绑定文件了。另一种解决办法是降低node-sass的版本至v4.14.1。你可以通过执行以下命令来卸载当前安装的node-sass版本:npm uninstall node-sass,然后重新安装v4.14.1版本的node-sass:npm install node-sass@4.14.1。这样也可以解决版本不兼容的问题。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* *2* [Node Sass could not find a binding for your current environment:windows 64-bit with Node.js 16.x](https://blog.csdn.net/weixin_41950674/article/details/122976356)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文