我正在尝试将MacBook更新到最新版本。 还下载并安装了最新版本的宅基,virtualbox和vagrant。 我还破坏了旧的虚拟机,并希望重新开始。
我遇到了几个问题,要让它们全部重新运行。但是现在,我使机器开始运行(无用)。最后我得到了这个错误,但是不知道我到底要做什么:
homestead-7: Updating to version 1.8.3 (stable channel).
homestead-7:
homestead-7:
homestead-7: [ErrorException]
homestead-7: rename(/home/vagrant/.composer/cache/composer-temp.phar,/usr/local/bin/composer): Permission denied
homestead-7:
homestead-7:
homestead-7: self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
此外,我在homestead.yaml中配置了这样的路径:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code
to: /home/vagrant/Code
sites:
- map: testen.app
to: /home/vagrant/Code/testen/public
还在主机中配置了它。但是,当我在浏览器中打开链接时,它只会显示“未指定输入文件”。 我通过vagrant ssh登录到机器并检查路径。在那里。 也许由于先前的错误而没有输入文件?我真的不知道我要修理什么...
答案 0 :(得分:0)
您确定composer.phar文件存在吗?检查您的访问权限?