Error when running nodejs app (npm test)
See original GitHub issueDebugger listening on ws://127.0.0.1:46185/05be73ee-cc53-4636-a999-1de2510d7945
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Error in the js-debug bootloader, please report to https://aka.ms/js-dbg-issue: Error [ERR_INSPECTOR_ALREADY_ACTIVATED]: Inspector is already activated. Close it with inspector.close() before activating it again.
at Object.inspectorOpen (inspector.js:137:11)
at bootloader.bundle.cdp:7:4964
at bootloader.bundle.cdp:7:6191
at Object.<anonymous> (bootloader.bundle.cdp:7:6391)
at r (bootloader.bundle.cdp:1:110)
at bootloader.bundle.cdp:1:902
at Object.<anonymous> (bootloader.bundle.cdp:1:912)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Error when running npm test or npm run lint-test #635 - GitHub
I tried to run my tests with the command javascript npm test . I went to the link provided by the CLI. Expected:...
Read more >Error when running npm test - node.js - Stack Overflow
I run npm test and I get this error: enter image description here. Here's the default test in file App.test.js : import React...
Read more >15 Common Error Codes in Node.js and How to Fix Them
Therefore, we've compiled this list of 15 common Node.js errors ... Therefore, do investigate the appropriate command to run on your system.
Read more >Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >Test runner | Node.js v19.3.0 Documentation
Assume Node.js is run with the --test-only command-line option. // The 'only' option is set, so this test is run. test('this test is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, thanks. It sounds like you’re using auto attach. In this case, you’ll want to run just
node
first (once) so update the bootloader, either using the nightly VS Code build or in the next version of VS Code that will come out next week.OK, so I use latest stable VSCode on WSL 2 on Windows 10.
nvm use lts/*
) (v14.16.0
).npm install
).npm test
. Here the debugger attaches and logs the error.