Closed
Description
- Version: 4.4.6.0
- Platform: Windows 7 Enterprise SP1
- Subsystem: no idea
Documentation https://nodejs.org/api/process.html#process_process_argv says process.argv[0]
must be node
but I run this code on Windows
console.log('argv[0]: ' + process.argv[0]);
and it outputs this
argv[0]: C:\Program Files (x86)\nodejs\node.exe
which kind of isn't the same as node
. It was node
on some earlier versions - perhaps a couple years ago.
Here's how I run my code: I started cmd.exe
, cd
d into C:\Program Files (x86)\nodejs
, so it's now the current path and I run
node fullPathToJsFile