node.js - node经常卡住
怪我咯
怪我咯 2017-04-17 11:54:36
0
2
610

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

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

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

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

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
黄舟

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

快速编辑模式

左手右手慢动作

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template