yeoman:咕噜服务器在等待......不能回到命令行 [英] yeoman: grunt server waiting... can't go back to command line

查看:96
本文介绍了yeoman:咕噜服务器在等待......不能回到命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了yeoman,并尝试使用命令:grunt服务器来预览我的应用程序。
一切都很好,除非我试图回到命令行继续键入一些命令,下面是我运行grunt服务器后的状态:



<$ p $运行autoprefixer:dist(autoprefixer)任务
创建了前缀文件.tmp / styles / main.css。

运行connect:livereload(连接)任务
开始在127.0.0.1:9000上连接Web服务器。

运行监视任务
等待...

是否有人知道如何阻止它?

解决方案

这是故意的; Yeoman生成的 grunt server 命令为您提供了一个完整的测试环境,以便您可以编译正在编译的文件和服务器以预览您的应用程序。如果你停下来,你必须用同样的命令再次启动它。如果你在Mac上,我建议使用类似 http://www.iterm2.com/ 的东西,以便可以保留该过程在一个单独的窗口中运行,这样你就不必停止/启动它。



然而,您可以随时停止任务 CTRL + C


I installed yeoman, and trying use command: grunt server to preview my application. everything is fine except when i try to get back to command line to continue typing in some commands, below is the status after i run grunt server:

Running "autoprefixer:dist" (autoprefixer) task
Prefixed file ".tmp/styles/main.css" created.

Running "connect:livereload" (connect) task
Started connect web server on 127.0.0.1:9000.

Running "watch" task
Waiting...

does anybody know how to stop it?

解决方案

This is intentional; the Yeoman generated grunt server command gives you a complete testing environment so that you can have files being compiled and a server to preview your app on. If you stop it, you'll have to start it again with the same command. I'd recommend using something like http://www.iterm2.com/ if you're on a Mac so that you can keep the process running in a separate window, that way you don't have to keep stopping/starting it.

Nonetheless, you can stop the task at any time with CTRL + C.

这篇关于yeoman:咕噜服务器在等待......不能回到命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆