- 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, cdd into C:\Program Files (x86)\nodejs, so it's now the current path and I run
Documentation https://nodejs.org/api/process.html#process_process_argv says
process.argv[0]must benodebut I run this code on Windowsand it outputs this
which kind of isn't the same as
node. It wasnodeon some earlier versions - perhaps a couple years ago.Here's how I run my code: I started
cmd.exe,cdd intoC:\Program Files (x86)\nodejs, so it's now the current path and I run