在Mac OS X上执行Gulp时出错

时间:2015-07-30 15:10:00

标签: gulp

无法运行Gulp,并且不太确定这里的问题是什么。我已经用Google搜索了错误,但所有已经出现的论坛都没有解决我的问题。

以下是相关的安装信息:

npm -v
2.11.3
node -v
v0.12.7
node -p process.versions
{ http_parser: '2.3',
  node: '0.12.7',
  v8: '3.28.71.19',
  uv: '1.6.1',
  zlib: '1.2.8',
  modules: '14',
  openssl: '1.0.1p' }
node -p process.platform
darwin
node -p process.arch
x64

执行Gulp时我遇到的错误:

Error: `libsass` bindings not found in /PATH/TO/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node. Try reinstalling `node-sass`?
    at Object.sass.getBinaryPath (/PATH/TO/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:148:11)
    at Object.<anonymous> (/PATH/TO/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:16:36)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/PATH/TO/node_modules/gulp-sass/index.js:163:21)
    at Module._compile (module.js:460:26)

对于接下来要做什么感到很遗憾...

1 个答案:

答案 0 :(得分:1)

尝试在EVENT TYPE=CLICK SELECTOR={{!VAR1}} BUTTON=4 后运行npm rebuild node-sass