Avatar of Jason Yu
Jason Yu
Flag for United States of America 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/composer/auth.json" 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 ~]$
Web-Based CMSLinux

Avatar of undefined
Last Comment
Jason Yu

8/22/2022 - Mon
Duncan Roe

Why are you downloading Yii 1 when current is 2.0.9? The web page(*) you posted in your question  says Yii 2.0 is not compatible with 1.1 so unless you're upgrading a 1.1 installation you would be better off with2.0 surely?

If you really need 1.1, I can investigate further. Please post what you want to do.

(*) scroll up to see this information
ASKER CERTIFIED SOLUTION
Duncan Roe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason Yu

ASKER
Not yet, let me do it now.

thanks.
Jason Yu

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
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Jason Yu

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.inputmask (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.inputmask (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::postCreateProject
chmod('runtime', 0777)...done.
chmod('web/assets', 0777)...done.
chmod('yii', 0755)...done.
[jyu@trialserverc1 yii_project]$