【问题标题】:Issues installing Homestead安装 Homestead 的问题
【发布时间】:2015-01-06 15:18:11
【问题描述】:

祝大家有美好的一天。我在安装宅基地时遇到了一些严重的问题。我已经有了 vagrant,Virtualbox,laravel/homestead 盒子:vagrant box add laravel/homestead。在运行composer global require "laravel/homestead=~2.0" 时,我得到了这个:

Changed current directory to /Users/Mavericks/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing apigen/apigen (v2.8.1)
    Downloading: 100%

[ErrorException]                                                            
  ZipArchive::extractTo(/Users/Mavericks/.composer/vendor/composer/7305d654/  
  apigen-apigen-bca0954/apigen): failed to open stream: Is a directory

这是我的.bash_profile

#Adding Homestead PATH
export HOMESTEAD_PATH=~/.composer/vendor/bin
export PATH=$HOMESTEAD_PATH:$PATH

如果有人能指出我解决此问题的正确方向,我会很高兴。

【问题讨论】:

  • 安装 apigen/apigen 包时实际上是 composer 错误。我会尝试将您的作曲家中的 ApiGen 版本更改为 ~4.0,因为 2.8 分支存在一些错误。那可能会做到。如果这没有帮助,请向我们展示 composer.json 内容。

标签: shell laravel homestead


【解决方案1】:

我遇到了同样的问题。像我这样的计算机会在其他地方看到主目录。我不知道为什么。所以要修复它。将该行添加到您的 PATH 而不是您的。

/Users/Mavericks/.composer/vendor/bin

打开一个新的终端选项卡。并尝试此操作以检查它是否正常工作。

homestead --version

我希望它也能解决您的问题。 我正在使用 zshell,所以我在 .zshrc 文件中更改了 PATH。你的可能不一样。

【讨论】:

    猜你喜欢
    • 2015-06-17
    • 2017-07-20
    • 2016-06-15
    • 2017-08-05
    • 2018-10-15
    • 2016-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多