Node Sass找不到您当前环境的绑定 [英] Node Sass couldn't find a binding for your current environment

查看:309
本文介绍了Node Sass找不到您当前环境的绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建应用程序时遇到问题,因为node-sass不断失败并显示错误.

I am having issues building an app because node-sass keeps failing with the error.

缺少绑定中的错误/Users/warren/Sites/random-docs/my-cms/node_modules/node-sass/vendor/darwin-x64-11/binding.node
Node Sass找不到您当前环境的绑定:带有Node 0.10.x的OS X 64位

ERROR in Missing binding /Users/warren/Sites/random-docs/my-cms/node_modules/node-sass/vendor/darwin-x64-11/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node 0.10.x

我尝试跑步

npm rebuild node-sass

上面写着

二进制很好;退出.

Binary is fine; exiting.

运行node -v时,我得到v6.2.2

When running node -v I get v6.2.2

与sass错误显示节点0.10.x"不同.我不知道为什么它得到了错误的版本.我还尝试了删除node_modules文件夹并运行npm update或npm install,但这两种方法都无法解决问题.有什么想法吗?

Which is different to what the sass error says "Node 0.10.x". I can't figure out why it is getting the wrong version. I have also tried removing the node_modules folder and running npm update or npm install, both of which did not resolve the issue. Any ideas?

推荐答案

我遇到了同样的问题

您的gulp文件中有一个错误:
错误:缺少绑定E:\ allapp \ badshaindiancuisine \ node_module \ node-sass \ vendor \ win32-x64-46 \ binding.node
Node Sass找不到适合您当前环境的绑定:带有Node.js 4.x的Windows 64位

There is an error in your gulpfile:
Error: Missing binding E:\allapp\badshaindiancuisine\node_module\node-sass\vendor\win32-x64-46\binding.node
Node Sass could not find a binding for your current environment:Windows 64-bit with Node.js 4.x

找到以下环境的绑定:
-带有Node.js 4.x的OS X 64位

Found bindings for the following environment:
    - OS X 64-bit with Node.js 4.x

如何解决我的问题

进入项目文件夹,然后执行:

By going into project folder and then execute:

npm rebuild node-sass

这篇关于Node Sass找不到您当前环境的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆