Jason Yu
asked on
YII framework installation error
I tried to use composer to install YII advance template following this link http://www.yiiframework.com/download/#yii1
but it doesn't work with the following error, please help, thanks.
[jyu@gulpserver ~]$ composer create-project yiisoft/yii2-app-advanced advanced 2.0.9
Installing yiisoft/yii2-app-advanced (2.0.9)
- Installing yiisoft/yii2-app-advanced (2.0.9)
Loading from cache
Created project in advanced
Loading composer repositories with package information
Updating dependencies (including require-dev)
Could not fetch https://api.github.com/repos/jquery/jquery-dist, 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+gulpserver+2016-08-27+0019
to retrieve a token. It will be stored in "/home/jyu/.config/compose r/auth.jso n" for future use by Composer.
Token (hidden):
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.
- Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[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.
[jyu@gulpserver ~]$
but it doesn't work with the following error, please help, thanks.
[jyu@gulpserver ~]$ composer create-project yiisoft/yii2-app-advanced advanced 2.0.9
Installing yiisoft/yii2-app-advanced (2.0.9)
- Installing yiisoft/yii2-app-advanced (2.0.9)
Loading from cache
Created project in advanced
Loading composer repositories with package information
Updating dependencies (including require-dev)
Could not fetch https://api.github.com/repos/jquery/jquery-dist, 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+gulpserver+2016-08-27+0019
to retrieve a token. It will be stored in "/home/jyu/.config/compose
Token (hidden):
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.
- Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[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.
[jyu@gulpserver ~]$
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Not yet, let me do it now.
thanks.
thanks.
ASKER
HI, Duncan:
Thanks for your update. I copied the link showed above "https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+gulpserver+2016-08-27+0019" to retrieve the token ring, is it the right method.
After I copy and paste the link to a browser, it shows a Token description, then I copied the whole string and paste it on the command console to continue.
Please see the attached copyscreen.
gethub-token-ring.png
Thanks for your update. I copied the link showed above "https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+gulpserver+2016-08-27+0019" to retrieve the token ring, is it the right method.
After I copy and paste the link to a browser, it shows a Token description, then I copied the whole string and paste it on the command console to continue.
Please see the attached copyscreen.
gethub-token-ring.png
ASKER
Hi, Duncan:
I got it working. It's the token ring's error. I copied the token description instead of the token string for the installation. Thank you very much.
[jyu@trialserverc1 yii_project]$ composer create-project --prefer-dist yiisoft/yii2-app-basic basic
Installing yiisoft/yii2-app-basic (2.0.9)
- Installing yiisoft/yii2-app-basic (2.0.9)
Downloading: 100%
Created project in basic
Loading composer repositories with package information
Updating dependencies (including require-dev)
Reading bower.json of bower-asset/jquery.inputma sk (3.1.55)
Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/contents/bower.json?ref=d90a0d180495635e8dd97a770e7ab8b3c4ee6d53, 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+trialserverc1+2016-08-29+1745
to retrieve a token. It will be stored in "/home/jyu/.composer/auth. json" for future use by Composer.
Token (hidden):
Token stored successfully. - Installing yiisoft/yii2-composer (2.0.4)
Downloading: 100%
- Installing swiftmailer/swiftmailer (v5.4.3)
Downloading: 100%
- Installing bower-asset/jquery (2.2.4)
Downloading: 100%
- Installing bower-asset/yii2-pjax (v2.0.6)
Downloading: 100%
- Installing bower-asset/punycode (v1.3.2)
Downloading: 100%
- Installing bower-asset/jquery.inputma sk (3.2.7)
Downloading: 100%
- Installing cebe/markdown (1.1.0)
Downloading: 100%
- Installing ezyang/htmlpurifier (v4.8.0)
Downloading: 100%
- Installing yiisoft/yii2 (2.0.9)
Downloading: 100%
- Installing yiisoft/yii2-swiftmailer (2.0.5)
Downloading: 100%
- Installing yiisoft/yii2-codeception (2.0.5)
Downloading: 100%
- Installing bower-asset/bootstrap (v3.3.7)
Downloading: 100%
- Installing yiisoft/yii2-bootstrap (2.0.6)
Downloading: 100%
- Installing yiisoft/yii2-debug (2.0.6)
Downloading: 100%
- Installing bower-asset/typeahead.js (v0.11.1)
Downloading: 100%
- Installing phpspec/php-diff (v1.1.0)
Downloading: 100%
- Installing yiisoft/yii2-gii (2.0.5)
Downloading: 100%
- Installing fzaninotto/faker (v1.6.0)
Downloading: 100%
- Installing yiisoft/yii2-faker (2.0.3)
Downloading: 100%
Writing lock file
Generating autoload files
> yii\composer\Installer::po stCreatePr oject
chmod('runtime', 0777)...done.
chmod('web/assets', 0777)...done.
chmod('yii', 0755)...done.
[jyu@trialserverc1 yii_project]$
I got it working. It's the token ring's error. I copied the token description instead of the token string for the installation. Thank you very much.
[jyu@trialserverc1 yii_project]$ composer create-project --prefer-dist yiisoft/yii2-app-basic basic
Installing yiisoft/yii2-app-basic (2.0.9)
- Installing yiisoft/yii2-app-basic (2.0.9)
Downloading: 100%
Created project in basic
Loading composer repositories with package information
Updating dependencies (including require-dev)
Reading bower.json of bower-asset/jquery.inputma
Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/contents/bower.json?ref=d90a0d180495635e8dd97a770e7ab8b3c4ee6d53, 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+trialserverc1+2016-08-29+1745
to retrieve a token. It will be stored in "/home/jyu/.composer/auth.
Token (hidden):
Token stored successfully. - Installing yiisoft/yii2-composer (2.0.4)
Downloading: 100%
- Installing swiftmailer/swiftmailer (v5.4.3)
Downloading: 100%
- Installing bower-asset/jquery (2.2.4)
Downloading: 100%
- Installing bower-asset/yii2-pjax (v2.0.6)
Downloading: 100%
- Installing bower-asset/punycode (v1.3.2)
Downloading: 100%
- Installing bower-asset/jquery.inputma
Downloading: 100%
- Installing cebe/markdown (1.1.0)
Downloading: 100%
- Installing ezyang/htmlpurifier (v4.8.0)
Downloading: 100%
- Installing yiisoft/yii2 (2.0.9)
Downloading: 100%
- Installing yiisoft/yii2-swiftmailer (2.0.5)
Downloading: 100%
- Installing yiisoft/yii2-codeception (2.0.5)
Downloading: 100%
- Installing bower-asset/bootstrap (v3.3.7)
Downloading: 100%
- Installing yiisoft/yii2-bootstrap (2.0.6)
Downloading: 100%
- Installing yiisoft/yii2-debug (2.0.6)
Downloading: 100%
- Installing bower-asset/typeahead.js (v0.11.1)
Downloading: 100%
- Installing phpspec/php-diff (v1.1.0)
Downloading: 100%
- Installing yiisoft/yii2-gii (2.0.5)
Downloading: 100%
- Installing fzaninotto/faker (v1.6.0)
Downloading: 100%
- Installing yiisoft/yii2-faker (2.0.3)
Downloading: 100%
Writing lock file
Generating autoload files
> yii\composer\Installer::po
chmod('runtime', 0777)...done.
chmod('web/assets', 0777)...done.
chmod('yii', 0755)...done.
[jyu@trialserverc1 yii_project]$
If you really need 1.1, I can investigate further. Please post what you want to do.
(*) scroll up to see this information