我以前已经处理过这个问题,但是那是很多年前的事了,现在情况发生了很大变化。
我在服务器上有一个Satis项目。我在我的Bitbucket帐户和服务器之间设置了OAuth设置,因此在运行构建命令时,我的packages.json
文件已正确生成!
我的问题是,当我创建一个项目并需要我的一个私人仓库时;
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"repositories": [
{
"type": "composer",
"url": "https://packages.examp.co.uk/packages.json
}
],
...
..
.
我收到设置OAuth连接之前在服务器上遇到的身份验证错误;
- Installing vendor/package (dev-master e26586f): Downloading (connecting...)
Could not fetch https://bitbucket.org/socialauth/login/atlassianid/?next=%2Fblablafc7933418c080370cfb2701644cfb24d98.zip, please create a bitbucket OAuth token to access private repos
Follow the instructions on https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html
to create a consumer. It will be stored in "/Users/mycomputername/.composer/auth.json" for future use by Composer.
Ensure you enter a "Callback URL" (http://example.com is fine) or it will not be possible to create an Access Token (this callback url will not be used by composer)
Consumer Key (hidden):
如果我直接转到错误消息中的链接,则可以下载它。
谁能告诉我为什么我收到此消息?
致谢。