"Permission not_found: owner not found": I cannot publish private package to GitHub Packages under new organization #161277
-
Select Topic AreaQuestion BodyHi!,
I checked authentication with whoami:
which returns my username (alfonsomartinde), confirming authentication. Details of my setup and what I have tried:
My .npmrc is configured as follows:
I also tried it creating .npmrc from a GitHub Action
where GITHUB_TOKEN has the following permissions: (from the log)
My package.json contains:
Could you please help me resolve this or let me know if there is a delay or additional step required for new organizations to use GitHub Packages? Thank you very much for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
8000
Hi @alfonsomartinde, 📌 Root CauseFrom the error message:
It seems the issue lies in the scoped package name: "name": "@emanager.com/frontend" GitHub does not support dots in organization/package scope names for GitHub Packages. In your case, the scope ✅ SolutionYou need to rename the package scope to match the GitHub org exactly — without dots ( So, you have two options: Option 1: Rename your GitHub organizationRename the organization from "name": "@emanager/frontend" And in your @emanager:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=ghp_xxxxxxxxxxxxxxxxx Option 2: Publish under a personal scope (for testing)If you can't rename the org right now, try publishing under your personal scope first to confirm everything else is working: "name": "@alfonsomartinde/frontend" With @alfonsomartinde:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=ghp_xxxxxxxxxxxxxxxxx I hope this resolves your issue. Let me know if you need help renaming the org or migrating package names — happy to help! Best regards, |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! |
Beta Was this translation helpful? Give feedback.
Hi @alfonsomartinde,
📌 Root Cause
From the error message:
It seems the issue lies in the scoped package name:
GitHub does not support dots in organization/package scope names for GitHub Packages. In your case, the scope
@emanager.com
is being interpreted incorrectly by the npm registry (the%2f
encoding suggests confusion between the org and package name).✅ Solution
You need to rename the package scope to match the GitHub org exactly — without dots (
.
).So, you have two options:
Option 1: Rename your GitHub organization
Rename the organization…