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

执行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>]...
  • 写回答

1条回答 默认 最新

  • 第九系艾文 2022-12-02 18:50
    关注

    这个权限错误,是远端仓库权限,需要检查一下是对该远端仓库的权限

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?