繁体   English   中英

laravel Homestead从错误开始,没有输入文件

[英]laravel Homestead starting with error and no input file

我试图将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登录到机器并检查路径。 在那里。 也许由于先前的错误而没有输入文件? 我真的不知道我要修理什么...

您确定存在composer.phar文件吗? 检查您的访问权限?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM