Based on the https://npm.pkg.github.com/
appearing in the error output, you are trying to publish to GitHub Packages and not the npm registry (which are still separate, although GitHub now owns npm). According to the GitHub packages docs:
GitHub Packages only supports scoped npm packages. Scoped packages have names with the format of @owner/name. Scoped packages always begin with an @ symbol. You may need to update the name in your package.json to use the scoped name. For example, “name”: “@codertocat/hello-world-npm”.
So you’ll need to either change your configuration to point to the npm registry rather than the GitHub packages registry, or else change the name
field in your package.json
to be a scoped package name.
CLICK HERE to find out more related problems solutions.