I am trying to publish some packages at NPM, and have the following error:
timing command:publish Completed in 207ms
verbose stack Error: invalid semver:
verbose stack at patchManltest (/Users/camilacno/.nvm/versions/node/v16.13.0/lib/node_modules/libnpmpublish/publish.js:83:7)
...
verbos node v16.13.0
verbose npm v8.1.0
error code EBADSEMVER
error invalid semver
verbose exit 1
Repo: https://github.com/camilacno/2305P
Already tried several changes in my packages.json
and nothing works.
Has anyone already had this error?
Thanks Camila
Npm says that something wrong with package version
in your package.json
. If it is not set like in your root package.json
file you should add it and check that it is in x.x.x format e.g. package.json
:
{
"version": "0.0.1",
"description": "Some description",
...
}