我安装了laravel / homestead并试过’composer update’.
Composer给我一个关于私人仓库的TransportException.
Composer给我一个关于私人仓库的TransportException.
Composer update Loading composer repositories with package information Your GitHub credentials are required to fetch private repository Metadata (https://github.com/GrahamCampbell/asset) A token will be created and stored in "/home/vagrant/.composer/auth.json",your password will never be stored To revoke access to this token you can visit https://github.com/settings/applications Username: Password: Token successfully created [Composer\Downloader\TransportException] The "https://api.github.com/repos/GrahamCampbell/asset" file Could not be downloaded (HTTP/1.1 404 Not Found)
我无法通过这一点,所以我被困住了.
如果您可以访问私人仓库,则可以在
composer中使用
SSH Keys.
否则你可以使用GitHub API Tokens.
$export GITHUB_ACCESS_TOKEN=hash-to-your-api-token $composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN $composer install
如果您使用的是Vagrant,则可以在配置器中添加环境变量和编写器配置.
在编写页面以在GitHub上生成新的访问令牌时,可以在Settings / Developer settings / Personal access tokens下找到.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。