normalize-package-data icon indicating copy to clipboard operation
normalize-package-data copied to clipboard

[BUG] Allow sentimental versioning

Open binarykitchen opened this issue 4 years ago • 1 comments

This error is thrown in my project

Error: Invalid version: "207-alpha1-SNAPSHOT"

Our version in package.json is sentimental, not in semver.

In error stack trace I can see above error comes from

...
    at Object.fixVersionField (.../node_modules/normalize-package-data/lib/fixer.js:191:13)
    at .../node_modules/normalize-package-data/lib/normalize.js:32:38
    at Array.forEach (<anonymous>)
    at normalize (.../node_modules/normalize-package-data/lib/normalize.js:31:15)
    at Function.module.exports.sync (.../node_modules/webpack-babel-env-deps/node_modules/read-pkg/index.js:43:36)

Not sure if this is related to your project. Feel free to close if I'm wrong here.

Thanks.

binarykitchen avatar Feb 03 '21 02:02 binarykitchen

Ping? Anyone?

binarykitchen avatar Feb 18 '21 02:02 binarykitchen

one of the requirements for npm packages is that their version field conform to semver.

See the docs for more info https://docs.npmjs.com/cli/v7/configuring-npm/package-json#version

wraithgar avatar Mar 13 '23 15:03 wraithgar