git 安装报这个错误,是咋回事? [ 2.0 版本 ]
  Now trying to download from source
  - Installing bower-asset/bootstrap (v3.4.1): Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-4SFE9AQ+2020-04-04+0406
to retrieve a token. It will be stored in "C:/Users/jiazhaochang/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
Cloning 68b000d231a1
  [RuntimeException]
  Failed to execute git clone --no-checkout "https://***:***@github.com/twbs/bootstrap.git" "D:\phpStudy\WWW\zikaowan
  g\vendor\bower-asset\bootstrap" && cd /D "D:\phpStudy\WWW\zikaowang\vendor\bower-asset\bootstrap" && git remote add
   composer "https://***:***@github.com/twbs/bootstrap.git" && git fetch composer && git remote set-url origin "https
  ://github.com/twbs/bootstrap.git" && git remote set-url composer "https://github.com/twbs/bootstrap.git"
  Cloning into 'D:\phpStudy\WWW\zikaowang\vendor\bower-asset\bootstrap'...
  fatal:***@github.com/twbs/bootstrap.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
D:\phpStudy\WWW>
最佳答案
- 
                                                

需要你在composer.json中配置token

token获取地址: https://github.com/settings/tokens/new
 
其他 0 个回答
没有找到数据。
PHP学院的中学生
            注册时间:2018-10-23
最后登录:2025-08-09
在线时长:169小时54分
    最后登录:2025-08-09
在线时长:169小时54分
- 粉丝29
 - 金钱4835
 - 威望30
 - 积分6825