Error: Cannot find module '"/Applications/Visual'
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
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:
nodeVersionHint: 10
to indicate you’re running with the old version of Node.jsdelete current node version (10) & use version >= 12 || nvm alias default 14(version>=12)