Hello, I just started with Github Packages and I encountered a problem.
I have successfully logged in using npm login
command. Then when I try npm publish
I have an 405 error :
npm notice
npm notice π¦ my-package@0.0.1
npm notice === Tarball Contents ===
[...]
npm notice === Tarball Details ===
npm notice name: my-package
npm notice version: 0.0.1
npm notice filename: my-package-0.0.1.tgz
[...]
npm notice
npm ERR! code E405
npm ERR! 405 Method Not Allowed - PUT https://npm.pkg.github.com/jbltx/my-package
Since I canβt name my package @jbltx/my-package
(the package is used by a software that invalidates names with @
character), I have overridden the value into publishConfig
in my package.json, according to the documentation
"name": "my-package",
"repository": {
"url": "https://github.com/jbltx/my-package.git",
"type": "git"
},
"publishConfig": {
"name": "@jbltx/my-package",
"registry": "https://npm.pkg.github.com/jbltx"
}
I also wonder if I need to put the OWNER username at the end of the registry url or not, since sometimes its the case but not everywhere in the doc.
Is there any way to solve this issue without changing the name of the package?
Thank you.