os.arch()
- 返回:<string>
返回用于编译 Node.js 二进制文件的操作系统 CPU 架构。可能的值有 'arm'、'arm64'、'ia32'、'loong64'、'mips'、'mipsel'、'ppc64'、'riscv64'、's390x' 和 'x64'。
🌐 Returns the operating system CPU architecture for which the Node.js binary was
compiled. Possible values are 'arm', 'arm64', 'ia32', 'loong64',
'mips', 'mipsel', 'ppc64', 'riscv64', 's390x', and 'x64'.
返回值等同于 process.arch。
🌐 The return value is equivalent to process.arch.