Solved

YII framework installation error

Posted on 2016-08-26
5
158 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
Comment Utility
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
Comment Utility
Did you try following the instructions to get an OAuth token?
0
 

Author Comment

by:Jason Yu
Comment Utility
Not yet, let me do it now.

thanks.
0
 

Author Comment

by:Jason Yu
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

14 Experts available now in Live!

Get 1:1 Help Now