尝试在节点0.12上重新安装`node-sass`? [英] Try reinstalling `node-sass` on node 0.12?
本文介绍了尝试在节点0.12上重新安装`node-sass`?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用谷歌网络入门套件。我安装了node.js v0.12.0, node-sass
& gulp
。
然后跑:
<$ p $ $ sudo npm install
当我输入 gulp serve
然后得到这个错误:
使用gulpfile〜/ web-starter-kit / gulpfile。 js启动'样式'...'样式'在93 ms后出错
错误:未找到libsass绑定。试着重新安装`node-sass`?在getBinding
我重新安装了节点和gulp,但这没有帮助。
接下来应该做什么?
解决方案
如果您的节点版本为4,并且您正在使用gulp -sass,然后尝试
npm uninstall --save-dev gulp-sass
npm install - -save-dev gulp-sass @ 2
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 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屋!
查看全文