Description
On Windows 11 25H2, installing a 64-bit Node.js release, defaults to C:\Program Files\nodejs, not C:\Program Files (x86)\nodejs.
The location C:\Program Files (x86)\nodejs, referred to in the documentation as the default installation path for Node.js, is only used for legacy 32-bit installations. Node.js 22 is the highest release line to still support a 32-bit x86 architecture on Windows.
Potential Solution
Regarding the default installation path for Windows:
- add
C:\Program Files\nodejs for 64-bit installation
- remove
C:\Program Files (x86)\nodejs or describe it as default for legacy 32-bit installations only
URL
https://docs.npmjs.com/try-the-latest-stable-version-of-npm#upgrading-on-windows
Description
On Windows 11 25H2, installing a 64-bit Node.js release, defaults to
C:\Program Files\nodejs, notC:\Program Files (x86)\nodejs.The location
C:\Program Files (x86)\nodejs, referred to in the documentation as the default installation path for Node.js, is only used for legacy 32-bit installations. Node.js 22 is the highest release line to still support a 32-bit x86 architecture on Windows.Potential Solution
Regarding the default installation path for Windows:
C:\Program Files\nodejsfor 64-bit installationC:\Program Files (x86)\nodejsor describe it as default for legacy 32-bit installations onlyURL
https://docs.npmjs.com/try-the-latest-stable-version-of-npm#upgrading-on-windows