Node Inspector v0.12.8
Visit http://127.0.0.1:8080/?port=5858 to start debugging.
C:\Users\songhj\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClie
nt.js:111
cb(error, NM[0].ref);
^
TypeError: Cannot read property 'ref' of undefined
at InjectorClient.<anonymous> (C:\Users\songhj\AppData\Roaming\npm\node_modu
les\node-inspector\lib\InjectorClient.js:111:22)
at C:\Users\songhj\AppData\Roaming\npm\node_modules\node-inspector\lib\Debug
gerClient.js:121:7
at Object.value (C:\Users\songhj\AppData\Roaming\npm\node_modules\node-inspe
ctor\lib\callback.js:23:20)
at Debugger._processResponse (C:\Users\songhj\AppData\Roaming\npm\node_modul
es\node-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\songhj\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClient.js
第111行改为:
if (NM.length)
cb(error, NM[0].ref);
标签:node,npm,AppData,js,inspector,songhj,异常
From: https://blog.51cto.com/u_16125990/6333876