node-inspector调试报错问题处理

使用node-inspector调试的时候,提示下面的异常,我的node版本是6.9.2出现下面的异常,我同事的版本4.2.1就没有这个问题。

C:\Users\dzm>node-inspector --web-port=8888
Node Inspector v0.12.8
Visit http://127.0.0.1:8888/?port=5858 to start debugging.
C:\Users\dzm\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClient.
js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property ‘ref‘ of undefined
    at InjectorClient.<anonymous> (C:\Users\dzm\AppData\Roaming\npm\node_modules
\node-inspector\lib\InjectorClient.js:111:22)
    at C:\Users\dzm\AppData\Roaming\npm\node_modules\node-inspector\lib\Debugger
Client.js:121:7
    at Object.value (C:\Users\dzm\AppData\Roaming\npm\node_modules\node-inspecto
r\lib\callback.js:23:20)
    at Debugger._processResponse (C:\Users\dzm\AppData\Roaming\npm\node_modulesnode-inspector\lib\debugger.js:95:21)
    at Protocol.execute (_debugger.js:121:14)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:548:20)

解决办法是找到C:\Users\dzm\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClient.

js的第111行,修改如下:

时间: 2024-08-26 19:07:57

node-inspector调试报错问题处理的相关文章

Xcode 真机调试报错:This application&#39;s application-identifier entitleme

    This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed 解决方法:1.Xcode-Window->Devices2.选中你的设备,在右边的installed Apps中删除这个App3.重新编绎即可 Xcode 真机调试报错:This

真机调试报错error ==Error Domain=NSURLErrorDomain Code=-1009 &quot;似乎已断开与互联网的连接。&quot;

真机调试报错error ==Error Domain=NSURLErrorDomain Code=-1009 "似乎已断开与互联网的连接." 请注意,错误代码是-1009,网上关于网络链接查询错误代码的网站很多,查询一下,会发现 -1009 kCFURLErrorNotConnectedToInternet NSURLErrorNotConnectedToInternet "The connection failed because the device is not con

node 中 npm报错 Error: ENOENT, stat &#39;C:\Users\Administrator\AppData\Roaming\npm&#39;

今天在看node书本时,安装express,看看里面的包.没想到出现这样一种情况. 报错了.后来思考了一下,可能是修改了node的默认安装路径.于是准备在出错的路径下建一个npm文件夹. 注意,有个时候会出现找不到AppData文件夹.看图: 看到这张图时大家应该明白了.因为这张图是隐藏起来的.大家要把他显示出来.至于如何在win7下显示文件夹,就不在这罗嗦了. 完成npm文件夹的创建后: 安装express试试: 看到下面那么一大坨东西,相信大家已经知道express暗转成功了. 在看看有没有

node安装失败报错

 安装Node有时会报错 提示这段信息 怎么安装都不行 最后通过命令行安装就可以完成 1.首先去Node下载安装包 下载完后放在本地 比如我放在桌面aa这个文件夹里 2.进去aa这个文件 复制里面的路径 3. 首先在电脑右下角右键 选择命令提示符 使用管理员身份那个运行 输入cd '你刚才复制的文件路径'  回车 最后 输入安装包的名称安装 msiexec /package '这里放你刚从Node官网下载的文件名'  然后回车 后面那一窜对应你刚才下载的安装包的名称 直接复制过去就完成了 原文地

XCode + IOS + Flutter真机调试报错

XCode + IOS + Flutter真机调试 报错:Could not build the precompiled application for the device. It appears that your application still contains the default signing identifier. Try replacing 'com.example' with your signing id in Xcode: open ios/Runner.xcwork

Android Studio调试报错am startservice

今天下载了一个Android studio2.3.0版本,想调试一下自己的一个项目,但是发现项目编译运行正常,但是一调试就报错: 09/14 16:19:13: Launching app$ adb shell am startservice com.xxxxxx.xxxxx/com.android.tools.fd.runtime.InstantRunServiceError while executing: am startservice com.xxxxxx.xxxx/com.androi

Xcode真机调试报错(证书的签发者无效)

Xcode真机调试时报错: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /var/mobile/Containers/Bundle/Application/A54D1688-B528-4606-9E02-B51433425FB7/LoveFreshBeen.app/LoveFreshBeen Reason: no suitable image found.  Did find: /pri

iOS开发真机调试报错

关键词 --<真机调试.Dependency Analysis Error> No Architectures to compile for···"没有用来编译**的架构" 在真机调试的时候出现这个问题.根据报错信息以为要修改 这里的Architectures,查阅了有关armv7,armv7s,arm64的相关知识,顺便贴上来 armv6 iPhone iPhone2 iPhone3G 第一代和第二代iPod Touch armv7 iPhone4 iPhone4S ar

【vivado】ILA调试报错 Data read from hw_ila [hw_ila_1] is corrupted. Unable to upload waveform.

ERROR: [Labtools 27-3312] Data read from hw_ila [hw_ila_1] is corrupted. Unable to upload waveform. 现象是,烧写bit和ltx后,调试波形界面出来了,但是run不出波形,接着就报错. 对比正常的project跟这个的区别,就是ILA多了一个,debug hub的连接有差异. //