Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
Use case
I have a monorepo with workspaces. Each workspace gets published to a separate package. In CI pipeline I want to check whether is module needs to be published or no. So to make a central decision which packages I need to publish I would love to know what are the most recent published versions. So what I do I run such a command npm view -ws --json
to have a common list of published packages. In case if I add one more package which is not yet published - I get an error npm ERR! 404 Not Found
Expected Behavior
For a single request it makes sense - for a bulk mode - I would prefer to have this error as a part of json payload.
It's ok to have an additional flag to indicate that behavior.
Do you think is possible?
Thank you!
Steps To Reproduce
- Create a new monorepo with couple workspaces
- Publish them
- Add a new workspace
- Run
npm view -ws --json
Environment
- npm: 8.12.1
- Node.js: v18.4.0