search

Home  >  Q&A  >  body text

node.js - node经常卡住

在使用node的过程中,会经常的发生卡住不动的莫名情况,倒不是程序未响应,只是莫名其妙的程序停住不往下走,在cmd中随便按个按键才会继续走。

发生该问题的情况有node跑server,gulp编译等。

以gulp编译举栗,编译到一半卡住,不继续编译了,一定要在cmd中随便按个按键,他才会继续往下走。
gulp.watch也经常会发生这种情况,文件改变了,gulp没有反应,要在cmd中随便按个快捷键,才会继续往下走。

不知道是node原因还是cmd的原因。node试过多个版本,当前版本为0.12.4

怪我咯怪我咯2781 days ago568

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-17 11:56:36

    What did you usewindows? , check if the cmd in 控制台窗口 属性 -> 选项 -> 编辑选项 is selected? 快速编辑模式

    If it is selected, it is likely that the reason why you stopped is that you accidentally clicked a position inside

    . Under cmd, when the mouse clicks on any content in 快速编辑模式 After that, all running processes will be stuck until you tap any other key. cmd

    The solution is a little simpler, just remove that

    快速编辑模式

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:56:36

    I often get stuck when I start it with webstorm. I don’t know what’s going on...

    reply
    0
  • Cancelreply