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: Cannot find module '"/Applications/Visual'

See original GitHub issue

Describe the bug upgraded version of node today now i get this error message when i run i’m using npm as runtimeExecutable in my launch.json

To Reproduce Steps to reproduce the behavior:

Click on Launch via NPM from within code internal/modules/cjs/loader.js:583 throw err; ^

Error: Cannot find module ‘"/Applications/Visual’ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Module.require (internal/modules/cjs/loader.js:637:17) at Module._preloadModules (internal/modules/cjs/loader.js:812:12) at preloadModules (internal/bootstrap/node.js:599:7) at startup (internal/bootstrap/node.js:273:9) at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

trace file sent via email

Log File

VS Code Version: Replace me!

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
connor4312commented, Jan 19, 2021

It looks like you have a copy of Node.js installed in ./node_modules/.bin/node – and since you’re running with npm, we fall back and see Node there.

I recommend either:

  • Uninstalling the copy of Node.js from your node_modules if it’s not actually the version of node you want to run with
  • Configure npm to use the copy of Node.js present in your node_modules (e.g. install npm locally as well and invoke that)
  • Manually set nodeVersionHint: 10 to indicate you’re running with the old version of Node.js
1reaction
smilecode11commented, Jun 11, 2022

delete current node version (10) & use version >= 12 || nvm alias default 14(version>=12)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module '"/Applications/Visual' when launching ...
Have a launch config as linked where the runtimeExecutable is set to npm, yarn, or pnpm; Verify that you can successfully run and...
Read more >
Cannot find module '"/Applications/Visual' when running ...
I'm developing on OSX and Windows. Everything was working fine over the weekend but at work, I'm confronted with the following error while ......
Read more >
How to resolve "Cannot find module" error in Node - Sabe.io
The issue is that Node is unable to find the module that you are trying to import into your Node application. The most...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
When you get the “cannot find module” error, or “module not found”, it means you've not installed the package you're trying to use....
Read more >
Cannot find module 'node-sass' on NPM build
I tried running a build 'ng build --prod' locally and didnt encounter any errors. I also tried add a new build step calling....
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