运行 gulp 时出错,缺少绑定,node-sass 找不到绑定
Posted
技术标签:
【中文标题】运行 gulp 时出错,缺少绑定,node-sass 找不到绑定【英文标题】:Error while running gulp, Missing binding, node-sass couldn't find a binding 【发布时间】:2021-10-30 06:51:59 【问题描述】:当我运行 gulp 命令时,我收到此错误:
throw new Error(errors.missingBinary());
^
Error: Missing binding C:\Program Files (x86)\Easyphp-Devserver-17\eds-www\Project\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 6.x
- Windows 64-bit with Node.js 14.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
at module.exports (C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\Project\node_modules\node-sass\lib\binding.js:15:13)
at Object.<anonymous> (C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\Project\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\Project\node_modules\gulp-sass\index.js:187:21)
我已经尝试 npm rebuild node-sass 并多次卸载并重新安装 node-sass 和所有 node_modules。
我在节点版本:6.10.2,npm:6.14.14,gulp CLI 版本 1.2.2,本地版本 3.9.1。视窗 10,x64。请帮忙。
【问题讨论】:
【参考方案1】:npm uninstall node-sass
然后
npm install node-sass
【讨论】:
以上是关于运行 gulp 时出错,缺少绑定,node-sass 找不到绑定的主要内容,如果未能解决你的问题,请参考以下文章
执行 Oracle Ad Hoc 查询时绑定参数出错; ORA-00907: 缺少右括号
在 laravel 应用程序中从 cmd 运行 gulp 时出错