[英]Google web starter kit gulp serve error
I want to start using Google web starter kit. 我想开始使用Google网络入门套件。 I installed node, ruby, gulp and npm 我安装了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
I installed in my repository: 我安装在我的存储库中:
cd my-project
npm install
npm install gulp -g
When i use gulp serve
in command line i have error 当我在命令行中使用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)
What is wrong? 怎么了? How can i see it on my local server with browser sync? 如何在具有浏览器同步功能的本地服务器上看到它? When i'm typing localhost:3000 in my browser nothing happend. 当我在浏览器中输入localhost:3000时,没有任何反应。
Try using node 0.12 (which is the previous version). 尝试使用节点0.12(以前的版本)。 Node 4 just came out, and some modules might not work with libsass being one of those ones. 节点4刚问世,并且某些模块可能无法与libsass一起使用,这些模块之一。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.