A package I maintain previously has had no issues, but just now started failing new publish attempts for a patch version update. My workflow is consistent, but now I am exiting just after the tarball details with
npm ERR! code HPE_INVALID_VERSION
npm ERR! errno HPE_INVALID_VERSION
npm ERR! request to http://registry.npmjs.org/@cjaas%2fcommon-components failed, reason: Parse Error: Invalid major version
This error is cryptic, and Google has not been helpful as of yet. The HTTP string seems odd because of the %2f
instead of slash, though I do not know what part of the publish operation that formatting takes place. If you go to http://registry.npmjs.org/@cjaas/common-components then the URL is correct.
This message about Invalid major version
is unclear, and I do not think it is related to the package version itself.
Any insight, leads or shared experience is much appreciated. This error has me dead in the water.