On my windows pc I have nodejs installed. I would like to determine whether it is 64 bit or 32 bit. How can one determine that? I executed
node --help
but that does not seem to have any option to give me the desired information.
Open the Task Manager by simultaneously pressing the Ctrl + Shift + Esc keys on your keyboard. Then, click on the Processes tab. In the Processes tab, you see the list of processes that are running at the moment. If a program is 32-bit, near its name you should see the text: *32.
To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print the version number so you'll see something like this v0. 10.35 .
Node. js runs on different architectures. You can use it on all common operating systems, like Windows, Linux, and macOS. You can also use it on 32-bit and 64-bit machines.
Open the .exe file using Notepad to check its headers The letter that follows the PE header tells you if the file is 32-bit or 64-bit. 32-bit (x86) programs would have PE L as the header. 64-bit (x64) programs would have PE d† as the header.
Run this from the command line:
node -p "process.arch"
It will return 'arm'
, 'arm64'
, 'ia32'
, 'mips'
,'mipsel'
, 'ppc'
, 'ppc64'
, 's390'
, 's390x'
, 'x32'
, or 'x64'
.
https://nodejs.org/api/process.html#process_process_arch
If node is installed and executable you can simply run
c:\> node -p "process"
and you should see the content of the process
variable formatted. There the keys arch
and platform
indicates your operating system. In the example below it's an Windows 7 x64
{ title : 'Administrator: C:\\Windows\\System32\\cmd.exe - node ', version : 'v0.10.36', moduleLoadList : [ 'Binding evals', ... 'Binding signal_wrap', 'NativeModule string_decoder'], versions : { http_parser : '1.0', node : '0.10.36', v8 : '3.14.5.9', ares : '1.9.0-DEV', uv : '0.10.30', zlib : '1.2.8', modules : '11', openssl : '1.0.1l' }, arch : 'x64', platform : 'win32', argv : ['node'], execArgv : [], env : { ALLUSERSPROFILE : 'C:\\ProgramData', HOMEDRIVE : 'C:', JAVA_HOME : 'C:\\Program Files\\Java\\jdk1.8.0_05', NODEJS : 'C:\\Program Files (x86)\\nodejs\\', NUMBER_OF_PROCESSORS : '4', OS : 'Windows_NT', Path : 'C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;', PATHEXT : '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY', PROCESSOR_ARCHITECTURE : 'AMD64', PROCESSOR_IDENTIFIER : 'Intel64 Family 6 Model 42 Stepping 7, GenuineIntel', PROCESSOR_LEVEL : '6', PROCESSOR_REVISION : '2a07', ProgramData : 'C:\\ProgramData', ProgramFiles : 'C:\\Program Files', 'ProgramFiles(x86)' : 'C:\\Program Files (x86)', ProgramW6432 : 'C:\\Program Files', PROMPT : '$P$G', PUBLIC : 'C:\\Users\\Public', PYTHON : 'C:\\Python34', SESSIONNAME : 'Console', SystemDrive : 'C:', SystemRoot : 'C:\\Windows', windir : 'C:\\Windows', windows_tracing_flags : '3' }, features : { ... }, config : { ... } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With