我现在开发环境是把nodejs装在centos虚拟机上。通过端口映射的方式访问虚拟机,虚拟机的网络连接是nat类型。
目前运行node debug的时候发现debugger的端口号提示有点奇怪。如下图。
尴尬的是运行node-inspector可以运行,但是一打开浏览器就 崩溃报错信息如下。
求高手解答,现在完全蒙蔽状态。
迷茫2017-04-17 15:25:34
I am also a beginner...
Look at the error message, ref is undefined. Did you not define ref in the code or did you spell it wrong?
ringa_lee2017-04-17 15:25:34
The default port of the debugger is 5858. If the error is reported, it means there is a problem with the code. Please check it carefully.