Troubleshoot Node.js package issues

Learn about troubleshooting steps that you might find helpful if you run into problems managing Node.js packages in Artifact Registry.

Can't overwrite an existing version of a package

You can only publish a specific version of a package once. This is an npm restriction to ensure that the contents of a published package version are always the same, and to prevent tampering with dependencies.

As a result, you cannot:

  • Overwrite a package version by publishing it again to the repository
  • Remove a package or its version from the repository, and then publish a package with the same name and version number

Tags can help you streamline installation of packages at a specific stage of development. For information about working with tags when you publish and install package, see Managing Node.js packages.