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

查看:31
本文介绍了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 找不到适合您当前环境的绑定:OS X 64-bit with Node 0.10.x

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

说的是

二进制没问题;退出.

当运行 node -v 我得到 v6.2.2

When running node -v I get v6.2.2

这与 sass 错误所说的Node 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?

推荐答案

我遇到了同样的问题

您的 gulpfile 中有错误:
错误:缺少绑定 E:allappadshaindiancuisine ode_module ode-sassvendorwin32-x64-46inding.node
Node Sass 找不到适合您当前环境的绑定:Windows 64-bit with Node.js 4.x

There is an error in your gulpfile:
Error: Missing binding E:allappadshaindiancuisine ode_module ode-sassvendorwin32-x64-46inding.node
Node Sass could not find a binding for your current environment:Windows 64-bit with Node.js 4.x

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

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天全站免登陆