A problem encountered when installing Yii2.0 using composer

Source: Internet
Author: User
: This article mainly introduces a problem encountered when using composer to install Yii2.0. if you are interested in the PHP Tutorial, refer to it. Yii 2.0 has changed a lot from version 1.0 to version, and the installation method is different (complicated). according to instructions on the official website, they suggest using the composer program to download and install it. okay, then I will install composer according to their suggestions. after downloading and installing composer, I will enter the command in the installation guide document to download the composer plug-in. the following error is returned:


Go to google and find that if you use the exe file on windows to install composer, the correct command for installing the plug-in above should be:

Composer global require "fxp/composer-asset-plugin: 1.0.0"

Similarly, the command for installing Yii 2.0 is the same. you only need to replace php composer. phar in the command with composer.

The above introduces a problem encountered when installing Yii 2.0 using composer, including some content, and hope to help friends who are interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.