Home > database >  Error imvalid server when publishing package to NPM
Error imvalid server when publishing package to NPM

Time:12-10

I am trying to publish some packages at NPM, and have the following error: enter image description here

Repo: https://github.com/camilacno/2305P

Already tryed several changes in my packages.json and nothing works. Anyone has already had this error?

Thanks Camila

CodePudding user response:

try using the .npmrc here is the official NpmJS docs for the npmrc.
Example:

//registry.npmjs.org/:_authToken=${TOKEN}

CodePudding user response:

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",
  ...
}
  • Related