Sometimes, we want to determine whether 64 bit or 32 bit Node executable installed.
In this article, we’ll look at how to determine whether 64 bit or 32 bit Node executable installed.
How to determine whether 64 bit or 32 bit Node executable installed?
To determine whether 64 bit or 32 bit Node executable installed, we use the process.arch
property.
For instance, we run
node -p "process.arch"
to print the value of the process.arch
property into the console.
The possible values for process.arch
includes
'arm',
'arm64'
'ia32'
'mips'
'mipsel'
'ppc'
'ppc64'
's390'
's390x'
'x32'
'x64'
Conclusion
To determine whether 64 bit or 32 bit Node executable installed, we use the process.arch
property.