node.js, node-debug, node-inspector, npm 等等的使用问题解决

1、node-debug的error:

/home/hzh/hzh/soft/softy/node-v6.10.0-linux-x64/lib/node_modules/node-inspector/lib/InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (/home/hzh/hzh/soft/softy/node-v6.10.0-linux-x64/lib/node_modules/node-inspector/lib/InjectorClient.js:111:22)

解决方法:

打开这个文件,修改成:

cb(error, NM.length==0 ? null : NM[0].ref);

 

posted @ 2017-03-02 11:11  微信公众号--共鸣圈  阅读(141)  评论(0编辑  收藏  举报