尝试在节点 0.12 上重新安装“node-sass"? [英] Try reinstalling `node-sass` on node 0.12?
本文介绍了尝试在节点 0.12 上重新安装“node-sass"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用 google web starter kit.我安装了 node.js v0.12.0, node-sass
&gulp
.
I would like to use google web starter kit. I installed node.js v0.12.0, node-sass
& gulp
.
然后跑:
$ sudo npm install
当我输入 gulp serve
然后得到这个错误:
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
我重新安装了 node 和 gulp,但这没有帮助.
I reinstalled node and gulp but this doesn't help.
接下来我该怎么做?
推荐答案
如果你的 node 版本是 4 并且你正在使用 gulp-sass,那么试试
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
这篇关于尝试在节点 0.12 上重新安装“node-sass"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文