卸载composer

为什么80%的码农都做不了架构师?>>>   hot3.png

#为什么要卸载它

composer安装的时候要求php版本大于5.4版本,windows上用的phpstudy支持多php版本,所以安装composer的时候它自动选择了php5.4结果导致后面使用laravel的时候报错

$ composer require dingo/api:1.0.x@dev
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
  - Installing doctrine/lexer (v1.0.1)
    Downloading: 100%

  - Installing doctrine/annotations (v1.2.7)
    Downloading: 100%

  - Installing league/fractal (0.14.0)
    Downloading: 100%

  - Installing dingo/blueprint (v0.1.6)
    Downloading: 100%

  - Installing symfony/routing (v3.0.9)
    Downloading: 100%

  - Installing illuminate/routing (v5.2.45)
    Downloading: 100%

  - Installing dingo/api (v1.0.0-beta3)
    Downloading: 100%

league/fractal suggests installing pagerfanta/pagerfanta (Pagerfanta Paginator)
league/fractal suggests installing zendframework/zend-paginator (Zend Framework Paginator)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
illuminate/routing suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (0.2.*).)
dingo/api suggests installing lucadegasperi/oauth2-server-laravel (Protect your API with OAuth 2.0.)
dingo/api suggests installing tymon/jwt-auth (Protect your API with JSON Web Tokens)
Writing lock file
Generating autoload files

转载于:https://my.oschina.net/oneboi/blog/806123

你可能感兴趣的:(卸载composer)