I have just published a private package on GitHub, trying to figure out how it should be working. now I'm trying to install it in another project. I authenticated with npm login --registry=https://npm.pkg.github.com
with an access token that has write:packages
, read:packages
and repo
privileges. While trying to run npm install https://npm.pkg.github.com/@orgname/package-name
I get an error message:
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="GitHub Package Registry"
How can I add/get this privilege?
question from:
https://stackoverflow.com/questions/58919401/installing-packages-from-github-npm-registry-auth-error-401 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…