简体   繁体   English

在将个人访问令牌添加到 .npmrc 后,在私有仓库上获得 404

[英]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.我在 github 设置中创建了令牌,在令牌上设置了正确的存储库权限,然后将其添加到 my.npmrc 文件中。 In place of $TOKEN I've copied in the token itself.代替 $TOKEN 我已经复制了令牌本身。 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.问题是 package 权限设置不正确,这对我来说不是问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GitHub 个人访问令牌私人回购 scope - GitHub Personal Access Token Private repo scope 无法使用个人访问令牌访问私人 Git 回购 - Can't Access Private Git Repo With Personal Access Token 从 github 私人仓库安装 package 没有个人访问令牌 - Install package from github private repo without personal access token 使用个人访问令牌 Netbeans 克隆私有 Github 回购 - Clone a Private Github Repo with a Personal Access Token Netbeans Git clone总是要求个人访问令牌(私人仓库) - Git clone always asks for Personal Access Token (private repo) 无法在私人仓库中使用个人访问令牌列出仓库 webhook - Cannot list repository webhooks using personal access token in private repo 使用个人访问令牌将 Gradle 上的脚本应用于私有(企业)github 存储库 - Apply Script on Gradle to private (enterprise) github repo using personal access token Github 用于访问私有存储库的个人访问令牌:/repos/:user/:repo/contents - Github personal access token for accessing private repository's: /repos/:user/:repo/contents 如何使用个人访问令牌在 github 操作工作流 (B) 中从不同的存储库 (B) 提交和推送到私有存储库 (A) - How to commit and push to a private repo(A), from a different repo(B), in github actions workflow (B) , using personal access token GitHub 个人访问令牌 scope 仅用于从私人仓库获取发布数据 - GitHub personal access tokens scope only for getting releases data from private repo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM