Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
If I do:
npm info npm@8.7.1 && echo $?
Then the exit code is 0, but no output from npm info is printed, as 8.7.1 of npm doesn't exist. I would expect npm info to give a non-zero exit code if the package at the specified version doesn't exist. If the package doesn't exist at all, then npm info does have a non-zero exit code (with logs telling you it doesn't exist)
Expected Behavior
Would log a message saying the specified version of that package doesn't exist, and exit with a non-zero exit code, much like for non-existent packages.
Steps To Reproduce
See above, assuming npm@8.7.1 hasn't been published in the meantime.
Environment
- npm: 8.7.1
- Node.js: v16.13.1
- OS Name: MacOS latest
- System Model Name:
- npm config: no non-default configuration.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
If I do:
Then the exit code is 0, but no output from
npm infois printed, as8.7.1of npm doesn't exist. I would expectnpm infoto give a non-zero exit code if the package at the specified version doesn't exist. If the package doesn't exist at all, thennpm infodoes have a non-zero exit code (with logs telling you it doesn't exist)Expected Behavior
Would log a message saying the specified version of that package doesn't exist, and exit with a non-zero exit code, much like for non-existent packages.
Steps To Reproduce
See above, assuming
npm@8.7.1hasn't been published in the meantime.Environment