简体   繁体   中英

unable to start node-inspector

I have recently installed node-inspector using command sudo npm install -g node-inspector for debugging my node app. It is installed successfully. But when i run the command node-inspector it give me the following error:

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

i think it is easier to use vs code to debug node.js instead of using node-inspector.

please read doc here https://code.visualstudio.com/Docs/editor/debugging

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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