我安装了laravel/住宅,并尝试了‘作曲家更新’。作曲家给了我一个关于私人回购的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)
我不能通过这一点所以我被困住了。
发布于 2015-03-30 12:39:58
否则,您可以使用GitHub API令牌。
$ export GITHUB_ACCESS_TOKEN=hash-to-your-api-token
$ composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN
$ composer install
如果您使用的是Vagrant,则可以在提供程序中添加一个环境变量和composer配置。
在编写页面以在GitHub上生成新的访问令牌时,可以在设置、/开发人员设置、/ 个人访问令牌下面找到。
https://stackoverflow.com/questions/29335387
复制相似问题