douna2917 2019-02-01 08:57
浏览 118

laravel Homestead以错误开头,没有输入文件

I was trying to update my MacBook to the newest version. Also downloaded and installed the newest version of homestead, virtualbox and vagrant. I also destroyed my old virtual machines and wanted to start fresh.

I had a couple of problems to get all of them to run again. But now, i got the machine running (vagrant up). At the end i get this error, but dont know what exactly i have to do:

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.

Also, i configured my paths in homestead.yaml like this:

---
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

also configured it in the hosts. But when i open the link in my browser, it just says "No input file specified." I log via vagrant ssh to the machine and check the path. It is there. maybe getting no input file because of the previous error? I really don't know what i have to repair...

  • 写回答

1条回答 默认 最新

  • dpk20361 2019-02-01 09:04
    关注

    Are you sure that the composer.phar file is present? Check your access rights?

    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献