Replies: 0 comments 3 replies
-
Converted to a discussion because this is a local problem, not a node bug. What happens when you open a shell and type |
Beta Was this translation helpful? Give feedback.
0 replies
-
throw err; Error: Cannot find module 'C:\Users\Asus\app.js' Node.js v18.18.0 This is what it displays... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version
v18.18.0
Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem
No response
What steps will reproduce the bug?
The error doesn't really belong to the code itself. I think it's an error related to the node.exe installed file.
My program consists of a single line of code, namely this one: console.log('Hello World');
After running it, the console shows up, it correctly displays "Hello World", but it exists with code -1. Just like that.
The program 'app.js' has exited with code -1 (0xffffffff).
This is displayed in the output downward window.
How often does it reproduce? Is there a required condition?
It's been happening since I installed node.js on my machine.
What is the expected behavior? Why is that the expected behavior?
It should exit with code 0 because I installed node.exe and I linked it with visual studio.
What do you see instead?
I see that it exits with code -1...
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions