Gulp没有跑gulp-sass

时间:2015-04-09 13:28:52

标签: sass gulp gulp-sass

我在我的电脑上安装了一个新的发行版(Elementary OS 0.3 Freya 64位)并设置我的工作流程我在运行gulp-sass包时遇到问题。当我运行gulp命令时,它返回错误:

$ gulp
[10:26:06] Using file /var/www/html/projects/avanteweb.github.io/gulpfile.js
[10:26:06] Working directory changed to /var/www/html/projects/avanteweb.github.io
/var/www/html/projects/avanteweb.github.io/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22
throw new Error('`libsass` bindings not found. Try reinstalling `node-sass
^
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (/var/www/html/projects/avanteweb.github.io/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22:11)
at Object.<anonymous> (/var/www/html/projects/avanteweb.github.io/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (module.js:462:26)
at Object.Module._extensions..js (module.js:480:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:367:17)
at require (module.js:386:17)
at Object.<anonymous> (/var/www/html/projects/avanteweb.github.io/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:462:26)

我在Try reinstalling node-sass on node 0.12?上尝试了答案,但它仍无效。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

从其他线程读取,这可能适合您:

$ npm uninstall gulp-sass node-sass
$ npm install node-sass@1.0.3 # using an older version of node-sass
$ npm install gulp-sass

<强>参考文献:

Try reinstalling node-sass on node 0.12?

Install fails - Windows 2008 - Error: libsass bindings not found. Try reinstalling node-sass?

libsass bindings not found error on v1.3.1, v1.3.2