After downloading Node.js
and Visual Studio Code
and after setting up the folders and changing it into respective directories using command lines inside the integrated powershell
of VS Code
, the 'node app.js' command fails to run the Hello World program. I wrote 'node' along with the full name of the directory and the filename app.js
, still its unable to run it.
I have attached the screenshot of it.
Asked
Active
Viewed 60 times
1

md2perpe
- 3,372
- 2
- 18
- 22

Ankan Chanda
- 63
- 5
-
You have two good answers. Please do not forget to mark the answer that helped you as "accepted". – Marcus Müller Jan 02 '22 at 16:27
-
duplicate of [Why don't other programs see the changes I made to a file in VS Code until I save those changes?](/q/76984829/) – starball Aug 26 '23 at 22:12
2 Answers
1
You forgot to save your file, In VSCode
- a white dot next to the file indicates unsaved changes to the file.
Save your file Ctrl+S
and fire off node app.js
like that :

MarioG8
- 5,122
- 4
- 13
- 29
-
@AnkanChanda You're welcome ! Now you can accept this answer as it solved your problem ! ;-) – MarioG8 Dec 31 '21 at 12:38