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?
My issue was that I was on a machine with
node version 0.12.2
, but that had an old1.x.x
version ofnpm
. Be sure to update your version of npm:sudo npm install -g npm
Once that is done, remove any existingnode-sass
and reinstall it via npm.I removed all the
/node_modules
folder then rannpm install
and it worked.I have node v5.5.0, npm 3.3.12
I had the same issue as @Kos had, only for some reason I had to modify the gulp-sass package from the old
package.json
file I had. It then installed the dependencies currently and now it finally works!If your node version is 4 and you are using gulp-sass, then try
i had the same problem today at work.
npm rebuild node-sass
done the job for me
Downgrading Node to 0.10.36 should do it per this thread on the node-sass github page: https://github.com/sass/node-sass/issues/490#issuecomment-70388754
If you have NVM you can just:
If you don't, you can find NVM and instructions here: https://www.npmjs.com/package/nvm