2017-12-20 17 views
0

사실 저는 Windows에서 Laravel Homestead를 사용하려고합니다. 나는이 오류를 얻을 vagrant up을 할 때농가에서 올라 타다가 막히는 경우에 오류가 발생했습니다.

: 나는 다른 사람의 질문에 읽을

C:/Users/Lluis/Homestead/scripts/homestead.rb:125:in `configure': undefined method `each' for "\u00D4\u00C7\u00F6 ~/.ssh/id_rsa":String (NoMethodError) 
     from C:/Users/Lluis/Homestead/Vagrantfile:35:in `block in <top (required)>' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/v2/loader.rb:37:in `load' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:125:in `block (2 levels) in load' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:119:in `each' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:119:in `block in load' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:116:in `each' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:116:in `load' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/vagrantfile.rb:28:in `initialize' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:810:in `new' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:810:in `vagrantfile' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:556:in `host' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:214:in `block in action_runner' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/action/runner.rb:33:in `run' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:543:in `hook' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:792:in `unload' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/bin/vagrant:141:in `ensure in <main>' 
     from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/bin/vagrant:141:in `<main>' 

이 오류의 원인은 스푸핑 파일을 찾을 수 없습니다입니다.

나는 나의 homestead.yaml 파일을 확인 그러나 그것은 좋은 모두가 내가 여기에 파일을 넣을 생각 :

--- 
ip: "192.168.10.10" 
memory: 2048 
cpus: 1 
provider: virtualbox 

authorize: c:/Users/Lluis/.ssh/id_rsa.pub 

keys: 
    — c:/Users/Lluis/.ssh/id_rsa 

folders: 
    - map: d:/Homestead_Projects 
     to: /home/vagrant/code 

sites: 
    - map: homestead.app 
     to: /home/vagrant/code/Laravel/public 

databases: 
    - homestead 

가 어떻게 오류를 해결할 수

? 누군가 homestead.yaml 파일에 오류가 있습니까? 홈 디렉토리에 ~, 오래된 디렉토리 .vagrant 및 .vagrant.d이 경우

답변

0

확인

덕분에, 당신은이를 삭제하고 다시 laravel/농가 상자를 추가해야합니다. 건배!

+0

.vagrant 및 .vagrant.d와 같이 2 개의 폴더가 있으므로 두 폴더를 삭제하고 이제 laravel/homestead 상자를 다시 추가해도 문제가되지 않습니다. 좀 도와주세요 –

+0

괜찮습니다. 도움이된다고 생각하십시오. –

+0

같은 오류입니다. 문제가 아닌 것 같습니다. 문제는 SSH에 관한 것이어야합니다./ –