Php composer global需要laravel/安装程序

Php composer global需要laravel/安装程序,php,laravel,laravel-5,composer-php,laravel-5.8,Php,Laravel,Laravel 5,Composer Php,Laravel 5.8,我已经尝试了Laravel文档中的第一个命令 composer global需要laravel/installer 我出错了 有人知道为什么吗 我正试图推出一个新的拉威尔项目 我解决了它很可能您需要切换: 如果Composer需要升级已安装的依赖项,则它拒绝升级包---使用所有依赖项更新用于更改此行为并升级所有必要的依赖项 Changed current directory to /Users/bheng/.composer

我已经尝试了Laravel文档中的第一个命令

composer global需要laravel/installer

我出错了

有人知道为什么吗


我正试图推出一个新的拉威尔项目

我解决了它很可能您需要切换:

如果Composer需要升级已安装的依赖项,则它拒绝升级包-
--使用所有依赖项更新
用于更改此行为并升级所有必要的依赖项

Changed current directory to /Users/bheng/.composer                                      
Using version ^2.0 for laravel/installer                                                 
./composer.json has been updated                                                         
Loading composer repositories with package information                                   
Updating dependencies (including require-dev)                                            
Your requirements could not be resolved to an installable set of packages.               

  Problem 1                                                                              
    - Conclusion: don't install laravel/installer v2.0.1                                 
    - Conclusion: remove guzzlehttp/guzzle 4.2.3                                         
    - Installation request for laravel/installer ^2.0 -> satisfiable by laravel/installer[v2.0.0, v2.0.1].                                                                        
    - Conclusion: don't install guzzlehttp/guzzle 4.2.3                                  
    - laravel/installer v2.0.0 requires guzzlehttp/guzzle ~6.0 -> satisfiable by guzzlehttp/guzzle[6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.1.1, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.3.1, 6.3.2, 6.3.3].                                                                             
    - Can only install one of: guzzlehttp/guzzle[6.0.0, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.0.1, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.0.2, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.1.0, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.1.1, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.2.0, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.2.1, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.2.2, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.2.3, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.3.0, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.3.1, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.3.2, 4.2.3].                          
    - Can only install one of: guzzlehttp/guzzle[6.3.3, 4.2.3].                          
    - Installation request for guzzlehttp/guzzle (locked at 4.2.3) -> satisfiable by guzzlehttp/guzzle[4.2.3].
composer global require laravel/installer --update-with-all-dependencies