简体   繁体   中英

Getting a 404 on a private repo after adding a personal access token to .npmrc

Not sure why this would be happening. Getting a

Request failed \"404 Not Found\""

I've created the token in my github settings, set the correct repository rights on the token, and then added it to my.npmrc file. In place of $TOKEN I've copied in the token itself. Am I missing something?

//npm.pkg.github.com/:_authToken=$TOKEN

The issue was that package permissions weren't set up properly, not a problem on my end.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM