What is the difference between the "Node.js" command line and the Windows command line?

What is the difference between the Node.js command line and the Windows command line?

Or, more importantly, why does it exist even when running node programs from a Windows command prompt?

Note. I ask about this guy, not REPL:

Windows Node.js command prompt

+6
source share
1 answer

Read the shortcut property. It simply executes cmd.exe with an argument that executes the .bat file, and then returns to the prompt.

C:\Windows\System32\cmd.exe /k "C:\Program Files\nodejs\nodevars.bat" 

All he does is make sure the path is properly configured to use node and npm. I never had to use this because my path was already set up to include these paths already (probably you too.)

+6
source

Source: https://habr.com/ru/post/977728/


All Articles