Move NPM package to other repo "Package is already associated with another repository".

I would like to move a package from one repository to another.

Consider this:

I have an organisation at “@org

I have 2 packages associated with one ‘monorepo’ “” called “@org/test1” and “@org/test2”

No I want to move “@org/test1” to its own repo in the organisation like “

I change the repo in “package.json” like this:

"name": "@org/test1",
  "publishConfig": {
    "registry": ""
  "repository": {
    "type": "git",
    "url": "ssh://",
    "directory": "packages/test1"

But I am getting this error:

422 Unprocessable Entity - PUT - Package "test1" is already associated with another repository.

How can I change this? Since the package stays in the namespace I expect this to work just fine.

1 Like

I still need help for this!

It looks like Github Packages requires  last part of the name (“test1” in you case) be unique.