vultr 日本东京主机 docker 下载报错

安装报错 · penny · 于 2个月前 发布 · 118 次阅读

执行 docker-compose build 报错

Step 8/11 : RUN composer global require "fxp/composer-asset-plugin:^1.4.4"
 ---> Running in c71ef8bd562c
Changed current directory to /root/.config/composer

  No composer.json present in the current directory (./composer.json), this may be the cause of the following except

  Package fxp/composer-asset-plugin at version ^1.4.4 has a PHP requirement incompatible with your PHP version, PHP 
extensions and Composer version  

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update]
 [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies]
 [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs
] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--
apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...

ERROR: Service 'php' failed to build: The command '/bin/sh -c composer global require "fxp/composer-asset-plugin:^1.
4.4"' returned a non-zero code: 1
共收到 4 条回复
penny#12个月前 0 个赞

fxp/composer-asset-plugin:^1.4.4"' 这个包下载失败

Fecmall#22个月前 0 个赞


penny#32个月前 0 个赞

@Fecmall #2楼 我看了下是版本不兼容的问题,我在Dockerfile 里面看了下配置,RUN composer global require "fxp/composer-asset-plugin:^1.4.4" 我把这里的版本更改下会不会有问题?

Fecmall#42个月前 0 个赞

@penny #3楼 我的docker也是半桶水水平,用的少,不是运维



添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics