Linux使用Composer安装yii2的方法及bug处理

Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/contents/bower.json?ref=f44d5deec804c72fe85da31819b18bdcdad26f65, please create a GitHub OAuth token to go over the API rate limitHead to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+localhost.localdomain+2015-05-14+1600to retrieve a token. It will be stored in "/root/.composer/auth.json" for future use by Composer.Token (hidden):输入在官网生成的秘钥回车即可

Installing yiisoft/yii2-app-basic (2.0.0) – Installing yiisoft/yii2-app-basic (2.0.0) Downloading: 100% Created project in yii2Loading composer repositories with package informationInstalling dependencies (including require-dev)Reading bower.json of bower-asset/jquery.inputmask (3.1.29)Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/contents/bower.json?ref=faf19625822fbd54765d26baac3154cd132769d1, enter your GitHub credentials to go over the API rate limitThe credentials will be swapped for an OAuth token stored in /root/.composer/auth.json, your password will not be storedTo revoke access to this token you can visit https://github.com/settings/applicationsUsername:myyiiname (这里填写你在官网注册的账户名)Password:myyiipwd (密码,你懂得)输入账户密码后会出现如下认证成功的提示(如果没有就证明你的账户密码错了,或者你刚在YII官网注册的新账户没有通过邮件激活):Token successfully created认证通过的提示信息下面紧跟着一句如下的进度提示信息,,说明正在安装过程中,需要你耐心等待,后面的小数点会随着安装进度有微妙的变化,Reading bower.json of bower-asset/typeahead.js (v0.10.0)然后紧接着缓缓有序的出现一些列如下的进度条,还需要耐心等待(摘取天上星linux下安装yii2):- Installing yiisoft/yii2-composer (2.0.0) Downloading: 100% – Installing swiftmailer/swiftmailer (v5.3.0) Downloading: 100% – Installing bower-asset/jquery (2.1.1) Downloading: 100% – Installing bower-asset/yii2-pjax (v2.0.1) Downloading: 100% – Installing bower-asset/punycode (v1.3.2) Downloading: 100% – Installing bower-asset/jquery.inputmask (3.1.41) Downloading: 100% – Installing cebe/markdown (1.0.1) Downloading: 100% – Installing ezyang/htmlpurifier (v4.6.0) Downloading: 100% – Installing yiisoft/yii2 (2.0.0) Downloading: 100% – Installing yiisoft/yii2-swiftmailer (2.0.0) Downloading: 100% – Installing yiisoft/yii2-codeception (2.0.0) Downloading: 100% – Installing bower-asset/bootstrap (v3.2.0) Downloading: 65%直到出现类似如下完整信息,说明YII2下载安装结束Installing yiisoft/yii2-app-basic (2.0.0) – Installing yiisoft/yii2-app-basic (2.0.0) Loading from cacheCreated project in yii2Loading composer repositories with package informationInstalling dependencies (including require-dev) – Installing yiisoft/yii2-composer (2.0.0) Loading from cache – Installing swiftmailer/swiftmailer (v5.3.0) Loading from cache – Installing bower-asset/jquery (2.1.1) Loading from cache – Installing bower-asset/yii2-pjax (v2.0.1) Loading from cache – Installing bower-asset/punycode (v1.3.2) Loading from cache – Installing bower-asset/jquery.inputmask (3.1.41) Loading from cache – Installing cebe/markdown (1.0.1) Loading from cache – Installing ezyang/htmlpurifier (v4.6.0) Loading from cache – Installing yiisoft/yii2 (2.0.0) Loading from cache – Installing yiisoft/yii2-swiftmailer (2.0.0) Loading from cache – Installing yiisoft/yii2-codeception (2.0.0) Loading from cache – Installing bower-asset/bootstrap (v3.2.0) Downloading: 100% – Installing yiisoft/yii2-bootstrap (2.0.0) Downloading: 100% – Installing yiisoft/yii2-debug (2.0.0) Downloading: 100% – Installing bower-asset/typeahead.js (v0.10.5) Downloading: 100% – Installing phpspec/php-diff (v1.0.2) Downloading: 100% – Installing yiisoft/yii2-gii (2.0.0) Downloading: 100% – Installing fzaninotto/faker (v1.4.0) Downloading: 100% – Installing yiisoft/yii2-faker (2.0.0) Downloading: 100% Writing lock fileGenerating autoload fileschmod(‘runtime’, 0777)…done.chmod(‘web/assets’, 0777)…done.chmod(‘yii’, 0755)…done.到这里整个YII2就安装结束了

第四步 测试yii2是否安装成功

你的脸是为了呈现上帝赐给人类最贵重的礼物–微笑,一定要成为你工作最大的资产。

Linux使用Composer安装yii2的方法及bug处理

相关文章:

你感兴趣的文章:

标签云: