Verify latest release
pnpm version
10.6.2
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
- Install Node.js (latest version).
- Install CommandLine Tools for Mac.
- Install Homebrew.
- Install PNPM using Homebrew or any other method.
- Run the command:
pnpm config set use-node-version 22.14
- After running the above command, all PNPM commands stop working.
- Clean all cache folders and verify environment variables.
- Even after uninstalling and reinstalling Node.js, CommandLine Tools, Homebrew, and PNPM, no PNPM commands work.
Describe the Bug
After running the command pnpm config set use-node-version 22.14, PNPM commands stopped working, and I started encountering the following error when running any PNPM command, such as pnpm --help:
ERR_PNPM_INVALID_NODE_VERSION "22.14" is not a valid Node.js version
This error indicates that the Node.js version being used is incorrectly recognized as "22.14", which is not a valid version. Despite uninstalling and reinstalling all related components, I still can't use PNPM because of this invalid version error.
Expected Behavior
PNPM should recognize the valid Node.js version and run the commands without any issues. I expect that when running pnpm --help, it should display the help information without errors related to an invalid Node version.
Which Node.js version are you using?
23.9.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
10.6.2
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
pnpm config set use-node-version 22.14Describe the Bug
After running the command
pnpm config set use-node-version 22.14, PNPM commands stopped working, and I started encountering the following error when running any PNPM command, such aspnpm --help:This error indicates that the Node.js version being used is incorrectly recognized as "22.14", which is not a valid version. Despite uninstalling and reinstalling all related components, I still can't use PNPM because of this invalid version error.
Expected Behavior
PNPM should recognize the valid Node.js version and run the commands without any issues. I expect that when running
pnpm --help, it should display the help information without errors related to an invalid Node version.Which Node.js version are you using?
23.9.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response