安装 laravel/laravel 失败

安装 laravel/laravel 失败

我执行了 vagrant ssh 并进入vagrant@homestead。当我安装composer global require laravel/installer并创建laravel new bacon时,导致了下面的错误。

另外,我尝试设置process-time-out我的composer.json文件以解决不起作用的错误。

此外,我的laravel installer version4.1.1在 vagrant@homestead

这是错误

Creating a "laravel/laravel" project at "./bacon"
Installing laravel/laravel (v8.5.6)
  - Installing laravel/laravel (v8.5.6): Extracting archive
    Install of laravel/laravel failed


  [RuntimeException]
  Could not delete /home/vagrant/code/bacon:  

霍姆斯特德.哈姆尔

folders:
    - map: C:\Users\taiga\github\project_laravel
      to: /home/vagrant/code

sites:
    - map: qcasts.test
      to: /home/vagrant/code/public
databases:
    - qcasts

features:
    - mariadb: false
    - ohmyzsh: false
    - webdriver: false

答案1

它可能是 composer 2.x,降级到 composer 1.x 应该有帮助:

sudo composer self-update --1

相关内容