![](/img/trans.png)
[英]Google's Web Starter Kit error running gulp in git bash command line terminal
[英]Google web starter kit gulp serve error
我想開始使用Google網絡入門套件。 我安裝了node,ruby,gulp和npm
C:\Users\Greg>node -v
v4.1.1
C:\Users\Greg>ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
C:\Users\Greg>npm -v
2.14.4
C:\Users\Greg>gulp -v
[13:48:29] CLI version 3.9.0
我安裝在我的存儲庫中:
cd my-project
npm install
npm install gulp -g
當我在命令行中使用gulp serve
時出現錯誤
C:\Users\Greg\Desktop\Web development\web-starter-kit-0.5.4\my-project>gulp serv
e
[13:35:46] Using gulpfile ~\Desktop\Web development\web-starter-kit-0.5.4\my-pro
ject\gulpfile.js
[13:35:46] Starting 'styles'...
[13:35:48] **'styles' errored after 1.63 s**
[13:35:48] Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (C:\Users\Greg\Desktop\Web development\web-starter-kit-0.5.4\m
y-project\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22:11)
at Object.<anonymous> (C:\Users\Greg\Desktop\Web development\web-starter-kit
-0.5.4\my-project\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:188
:23)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\Greg\Desktop\Web development\web- starter-kit
-0.5.4\my-project\node_modules\gulp-sass\index.js:3:17)
at Module._compile (module.js:434:26)
怎么了? 如何在具有瀏覽器同步功能的本地服務器上看到它? 當我在瀏覽器中輸入localhost:3000時,沒有任何反應。
嘗試使用節點0.12(以前的版本)。 節點4剛問世,並且某些模塊可能無法與libsass一起使用,這些模塊之一。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.