_wei丶
2021-07-08 11:23
采纳率: 0%
浏览 16

执行composer install出现Permission denied, 但用户有权限

我本地先更新了composer中一个包,然后执行命令composer install --ignore-platform-reqs,发布到其他环境,由于其他环境已经存在这个旧版本的包会自动更新后进行了update导致报错,以下是报错信息。

望大佬们解答

$ composer install  --ignore-platform-reqs

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 1 install, 15 updates, 0 removals
  - Updating xxx/xxx (0.2.0 => 0.3.1):  Checking out 9122d8ddce
                                                                                                                                                                                                                                                                  
  [RuntimeException]                                                                                                                                                                                                                                              
  Failed to execute git remote set-url composer 'git@xxx.com:xxx/xxx.git' && git rev-parse --quiet --verify '9122d8ddceaf44eae4205cbdea0bf2b48cf8xxxx^{commit}' || (git fetch composer && git fetch --tags composer)  
                                                                                                                                                                                                                                                                  
  Permission denied (publickey,gssapi-keyex,gssapi-with-mic).                                                                                                                                                                                                     
  fatal: Could not read from remote repository.                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                  
  Please make sure you have the correct access rights                                                                                                                                                                                                             
  and the repository exists.                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                  
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

相关推荐 更多相似问题