简体   繁体   English

无法启动节点检查器

[英]unable to start node-inspector

I have recently installed node-inspector using command sudo npm install -g node-inspector for debugging my node app. 我最近使用命令sudo npm install -g node-inspector以调试我的节点应用程序。 It is installed successfully. 已成功安装。 But when i run the command node-inspector it give me the following error: 但是,当我运行命令node-inspector ,出现以下错误:

debug.color = selectColor(namespae);
ReferenceError: namespae is not defined
at createDebug (/usr/local/lib/node_modules/node-inspector/node_modules/debug/debug.js:126:29)

I googled for this error, but doesn't find any solution. 我用谷歌搜索了此错误,但没有找到任何解决方案。

This is caused by a bug in one of your dependencies. 这是由您的一个依赖项中的错误引起的。 Hopefully someone will fix it soon. 希望有人会尽快修复它。 They are aware of it. 他们意识到这一点。

https://github.com/visionmedia/debug/issues/347 https://github.com/visionmedia/debug/issues/347

i think it is easier to use vs code to debug node.js instead of using node-inspector. 我认为使用vs代码调试node.js较使用node-inspector更容易。

please read doc here https://code.visualstudio.com/Docs/editor/debugging 请在这里阅读文档https://code.visualstudio.com/Docs/editor/debugging

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM