composer install yii2出错 [ 2.0 版本 ]
composer install yii2出错,出错的信息如下:
vagrant@vagrant-ubuntu-trusty-64:/home/websites$ composer create-project --prefer-source yiisoft/yii2-app-basic basic
Installing yiisoft/yii2-app-basic (2.0.11)
- Installing yiisoft/yii2-app-basic (2.0.11): Failed to download yiisoft/yii2-app-basic from source: The Process class relies on proc_open, which is not available on your PHP installation.
Now trying to download from dist - Installing yiisoft/yii2-app-basic (2.0.11): Loading from cache
Created project in basic
Loading composer repositories with package information
Updating dependencies (including require-dev)
[Composer\Repository\InvalidRepositoryException]
No valid bower.json was found in any branch or tag of https://github.com/jquery/jquery-dist.git, could not load a package from it.
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] [--no-install] [--ignore-platform-reqs] [--] [] [] []
跪求大神帮忙解惑~
共 4 个回答
-
dashixiong 回答于 2017-05-02 09:20 举报
说明你的网络很差劲,可以试试composer.phar那个文件安装。
-
zcx147716565 回答于 2017-05-05 15:36 举报
-
已经解决了: 由于需要在GITHUB上获取大量的文件, 下载中可能会出现超时. 只要用自己的gihub账号生成一个授权码后, 加到composer.json中. 再次执行 composer update 就不会出现这个情况.
guibin
最后登录:2017-08-08
在线时长:3小时40分
- 粉丝0
- 金钱10
- 威望0
- 积分40