Try reinstalling `node-sass` on node 0.12?
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?
Solution 1:
If your node version is 4 and you are using gulp-sass, then try
npm uninstall --save-dev gulp-sass
npm install --save-dev gulp-sass@2
Solution 2:
I found this useful command:
npm rebuild node-sass
From the rebuild
documentation:
This is useful when you install a new version of node (or switch node versions), and must recompile all your C++ addons with the new node.js binary.
http://laravel.io/forum/10-29-2014-laravel-elixir-sass-error
Solution 3:
I ran into this error using node 0.12.0
and it was fixed by deleting the existing /node_modules
directory and running npm update
.
Solution 4:
npm rebuild node-sass
was giving me errors (Ubuntu) and npm 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