我用composer 安装的时候遇到一个问题

安装报错 · micdeco · 于 6年前 发布 · 5691 次阅读

用composer安装遇到一个问题,大家帮我看看

MAC-4:fecshop mac$ composer update
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
Loading composer repositories with package information
Updating dependencies (including require-dev)                                                            
Reading bower.json of bower-asset/jquery.inputmask (3.1.51)
Could not fetch https://api.github.com/repos/RobinHerbots/Inputmask/commits/f29e2b535028bde8e1135deb65cb5ed2e081cf39, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+MAC-4.local+2017-10-22+2321
to retrieve a token. It will be stored in "/Users/mac/.composer/auth.json" for future use by Composer.
Token (hidden): 
No token given, aborting.
You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
Reading bower.json of bower-asset/jquery.inputmask (3.1.50)
Could not fetch https://api.github.com/repos/RobinHerbots/Inputmask/contents/bower.json?ref=f44d5deec804c72fe85da31819b18bdcdad26f65, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+MAC-4.local+2017-10-22+2329
to retrieve a token. It will be stored in "/Users/mac/.composer/auth.json" for future use by Composer.
Token (hidden): 
No token given, aborting.
You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
Reading bower.json of bower-asset/jquery.inputmask (3.1.49)
Could not fetch https://api.github.com/repos/RobinHerbots/Inputmask/contents/bower.json?ref=4a0bda47031b9d2074b0c77c3b447df71ed1ca95, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+MAC-4.local+2017-10-22+2340
to retrieve a token. It will be stored in "/Users/mac/.composer/auth.json" for future use by Composer.
Token (hidden): 
MAC-4:fecshop mac$ composer update

共收到 3 条回复
Fecmall#16年前 0 个赞

需要输入github的token

在出现:Token (hidden): 的时候,需要输入token

可以参考下这个:http://blog.csdn.net/u014175572/article/details/55510825

将获取下来的token填写上去,就可以了

token 获取后,建议使用xshell连接linux,然后设置右键粘贴,直接粘贴上去,而不是手动输入, 下面是设置截图:

micdeco#26年前 0 个赞

token输入了,出现第二个问题

MAC-4:fecshop mac$ composer update
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
Loading composer repositories with package information

Could not fetch https://api.github.com/repos/RobinHerbots/Inputmask, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+MAC-4.local+2017-10-27+0454
to retrieve a token. It will be stored in "/Users/mac/.composer/auth.json" for future use by Composer.
Token (hidden): 
Token stored successfully.
Updating dependencies (including require-dev)                                                            
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yiisoft/yii2 2.0.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.8 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.12 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.11.2 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.11.1 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.11 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.10 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[2.0.10, 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.12, 2.0.6, 2.0.7, 2.0.8, 2.0.9].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
MAC-4:fecshop mac$ 

Fecmall#36年前 0 个赞

百度网盘压缩包下载:https://pan.baidu.com/s/1hs1iC2C

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