Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

os.arch should be the architecture of the OS not of the process #2862

@joshwilsdon

Description

@joshwilsdon

In lib/os.js:

exports.arch = function() {
  return process.arch;
};

Which means that on a system that's running a 64 bit kernel but a 32 bit node binary you get:

> os.arch()
'ia32'

when you would have expected 'x64'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions