Node.js Version
v22.13.0
NPM Version
10.9.2
Operating System
Windows 11
Subsystem
Other
Description
Question:
I recently installed Node.js from the official Node.js website. However, when I try to check the version of npm or perform any npm-related operations, I encounter the following error:
CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-prefix.js" is not recognized as an internal or external command, operable program or batch file.
Minimal Reproduction
- Installed node.js from official website using windows installer.
- Tried to check version of npm.
Output

Before You Submit
Node.js Version
v22.13.0
NPM Version
10.9.2
Operating System
Windows 11
Subsystem
Other
Description
Question:
I recently installed Node.js from the official Node.js website. However, when I try to check the version of npm or perform any npm-related operations, I encounter the following error:
CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-prefix.js" is not recognized as an internal or external command, operable program or batch file.
Minimal Reproduction
Output
Before You Submit