Solved

YII framework installation error

Posted on 2016-08-26
5
197 Views
Last Modified: 2016-08-29
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 ~]$
0
Comment
Question by:Jason Yu
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 41773409
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
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 41773418
Did you try following the instructions to get an OAuth token?
0
 

Author Comment

by:Jason Yu
ID: 41775146
Not yet, let me do it now.

thanks.
0
 

Author Comment

by:Jason Yu
ID: 41775153
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
0
 

Author Comment

by:Jason Yu
ID: 41775165
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]$
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now