I would like to use google web starter kit. I installed node.js v0.12.0, node-sass
& gulp
.
And then ran:
$ sudo npm install
When I typed gulp serve
then got this error:
Using gulpfile ~/web-starter-kit/gulpfile.js Starting 'styles'... 'styles' errored after 93 ms
Error: `libsass` bindings not found. Try reinstalling `node-sass`? at getBinding
I reinstalled node and gulp but this doesn't help.
What should I do next?
If you use Gulp then try:
npm install gulp-sass
I had the same problem and the
gulp-sass
package was the problem.For me, this issue was caused in my build system (Travis CI) by doing something kind of dumb in my
.travis.yml
file. In effect, I was callingnpm install
beforenvm use 0.12
, and this was causingnode-sass
to be built for0.10
instead of0.12
. My solution was simply movingnvm use
out of the.travis.yml
file’sbefore_script
section to before thenpm install
command, which was in thebefore_install
section.In your case, it is likely that whatever process you are starting with
gulp
is using a different version ofnode
(than what you would expect).npm rebuild node-sass
was giving me errors (Ubuntu) andnpm install gulp-sass
didn't make the error go away.Saw a solution on GitHub which worked for me:
npm uninstall --save-dev gulp-sass
npm install --save-dev gulp-sass
You need to use the right version. Try:
I found this useful command:
From the
rebuild
documentation:http://laravel.io/forum/10-29-2014-laravel-elixir-sass-error
I ran into this error using node
0.12.0
and it was fixed by deleting the existing/node_modules
directory and runningnpm update
.