I update prisma from 2.20 to 2.26 (and then also t...
# orm-help
h
I update prisma from 2.20 to 2.26 (and then also to 2.27) If I run
yarn prisma generate
I get the following error:
Copy code
Prisma schema loaded from prisma/schema.prisma
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="GitHub Package Registry"

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/henri/.npm/_logs/2021-07-13T13_55_51_322Z-debug.log
Error: Command failed with exit code 1: npm install -D prisma@2.27.0
I does not seem like a pure prisma issue, but maybe anyone has an idea what this could be caused by? If needed I can add the debug.log messages
r
@Henri Kuper 👋 Are you using any private GitHub packages? I tried
generate
after an upgrade and it works fine 🙂
h
Yes I do…
r
That might be causing an issue.
h
Do you know what I need to change to continue using my private repos, but still not have an issue with prisma?
I already had in mind, that the private ones make some trouble, but I could not find out what the real reason is, because everything worked with 2.20.
r
I’m not sure, can you try setting the auth setup again for GitHub packages and try again?
h
I removed the line where I set the registry to my private one. Now it works. You are right, something is messed up with my process of auth. Thanks for the help
👍 1