本文翻译自:Node Sass couldn't find a binding for your current environment
I am having issues building an app because node-sass keeps failing with the error. 我在构建应用程序时遇到问题,因为node-sass不断因错误而失败。
ERROR in Missing binding /Users/warren/Sites/random-docs/my-cms/node_modules/node-sass/vendor/darwin-x64-11/binding.node 缺少绑定/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 Node Sass找不到您当前环境的绑定:带有Node 0.10.x的OS X 64位
I have tried running 我试过跑步
npm rebuild node-sass
which says 这说
Binary is fine; 二进制很好; exiting. 退出。
When running node -v
I get v6.2.2 当运行node -v
我得到v6.2.2
Which is different to what the sass error says "Node 0.10.x". 这与sass错误显示“节点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. 我还尝试了删除node_modules文件夹并运行npm update或npm install,但这两种方法都无法解决问题。 Any ideas? 有任何想法吗?