question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running nodejs app (npm test)

See original GitHub issue
Debugger 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
connor4312commented, Mar 25, 2021

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.

0reactions
strarsiscommented, Mar 22, 2021

OK, so I use latest stable VSCode on WSL 2 on Windows 10.

  • git cloned the svgo repository, opened it in VSCode.
  • Switched to latest node version in VSCode terminal (nvm use lts/*) (v14.16.0).
  • Installed the dependencies (npm install).
  • Finally I invoked npm test. Here the debugger attaches and logs the error.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found