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