我正在使用yeogurt发电机创建一个自耕农的网站。运行yo yeogurt
并完成选项后,它成功完成且没有错误,并告诉我现在应该运行gulp serve
。但是,当我这样做时,它会卡在下面输出的最后一行:
[16:08:16] Using gulpfile ~/myproj/gulpfile.js
[16:08:16] Starting 'imagemin'...
[16:08:16] Starting 'copy'...
[16:08:16] Starting 'jade'...
[16:08:16] Starting 'sass'...
[16:08:16] Finished 'sass' after 124 ms
[16:08:16] Starting 'browserify'...
[16:08:16] Starting 'browserSync'...
[16:08:16] Finished 'browserSync' after 9.69 ms
[16:08:16] Starting 'watch'...
[16:08:16] Finished 'watch' after 39 ms
[16:08:16] gulp-imagemin: Minified 0 images
[16:08:16] Finished 'imagemin' after 355 ms
[BS] Access URLs:
-----------------------------------------
Local: http://localhost:3000/./
External: http://192.168.1.115:3000/./
-----------------------------------------
UI: http://localhost:3001
UI External: http://192.168.1.115:3001
-----------------------------------------
[BS] Serving files from: tmp
[BS] Reloading Browsers...
[16:08:16] Finished 'jade' after 492 ms
[16:08:16] Finished 'copy' after 495 ms
[BS] 1 file changed (main.css)
[16:08:17] 715847 bytes written (0.71 seconds)
./src/_scripts/main.js was browserified: 0.754s
[BS] Reloading files that match: *.js
我很难跟踪此错误。
答案 0 :(得分:0)
对后人来说:它并没有被卡住。一点都不它已成功运行,服务器在端口3000
上处于活动状态。我只是习惯于在服务器启动时为你打开浏览器窗口,但是对于Yeogurt,除非你添加--open
标志,否则它不会这样做。