Cannot An Composerasset after installing composer under Mac

Source: Internet
Author: User
The first code is as follows.

➜~ php/usr/local/bin/composer global require "fxp/composer-asset-plugin:~1.1.0" Changed current directory To/users/mac /.composerphp Fatal error:call to undefined method Composer\package\version\versionparser::p arselinks () in/users/mac/ . composer/vendor/fxp/composer-asset-plugin/repository/vcspackagefilter.php on line 270Fatal error:call to undefined Method Composer\package\version\versionparser::p arselinks () in/users/mac/.composer/vendor/fxp/ composer-asset-plugin/repository/vcspackagefilter.php on line 270➜~ php/usr/local/bin/composer global require "fxp/co Mposer-asset-plugin:~1.1.4-bata "Changed current directory to/users/mac/.composerphp Fatal error:call to undefined meth OD composer\package\version\versionparser::p arselinks () in/users/mac/.composer/vendor/fxp/composer-asset-plugin/ repository/vcspackagefilter.php on line 270Fatal error:call to undefined method composer\package\version\versionparser ::p arselinks () in/users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/vcspackagefilter.php on line 270 

I just started installing Composerasset 1.0.0 version of the time no problem, After installing the 1.0.4-bata version after the success, I will composer the global installation, but then do this to report the above error, search for a lot of information, but seemingly useless, delete Composer.phar after the global installation, or no change, error as always, so can only seek guidance.

Reply content:

The first code is as follows.

➜~ php/usr/local/bin/composer global require "fxp/composer-asset-plugin:~1.1.0" Changed current directory To/users/mac /.composerphp Fatal error:call to undefined method Composer\package\version\versionparser::p arselinks () in/users/mac/ . composer/vendor/fxp/composer-asset-plugin/repository/vcspackagefilter.php on line 270Fatal error:call to undefined Method Composer\package\version\versionparser::p arselinks () in/users/mac/.composer/vendor/fxp/ composer-asset-plugin/repository/vcspackagefilter.php on line 270➜~ php/usr/local/bin/composer global require "fxp/co Mposer-asset-plugin:~1.1.4-bata "Changed current directory to/users/mac/.composerphp Fatal error:call to undefined meth OD composer\package\version\versionparser::p arselinks () in/users/mac/.composer/vendor/fxp/composer-asset-plugin/ repository/vcspackagefilter.php on line 270Fatal error:call to undefined method composer\package\version\versionparser ::p arselinks () in/users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/vcspackagefilter.php on line 270 

I just started installing Composerasset 1.0.0 version of the time no problem, After installing the 1.0.4-bata version after the success, I will composer the global installation, but then do this to report the above error, search for a lot of information, but seemingly useless, delete Composer.phar after the global installation, or no change, error as always, so can only seek guidance.

https://github.com/francoispluchino/composer-asset-plugin/pull/133

    • Linux:rm -rf ~/.composer/vendor/fxp

    • Windows:rm -r%APPDATA%\Composer\vendor\fxp

    • composer global require "fxp/composer-asset-plugin:~1.1.1"

  • 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.