前提・実現したいこと
VirtualBox
vagrantをインストールし
$ vagrant box add laravel/homestead
しました。
HomesteadをGitから落としてきて
$ git clone https://github.com/laravel/homestead.git Homestead
秘密鍵へのパスを確認してvagrant upするとエラーがでました
発生している問題・エラーメッセージ
(most recent call last):
33: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/bin/vagrant:231:in <main>' 32: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:290:in
cli'
31: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/cli.rb:67:in execute' 30: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/commands/destroy/command.rb:49:in
execute'
29: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:273:in batch' 28: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:273:in
synchronize'
27: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:274:in block in batch' 26: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:274:in
tap'
25: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:276:in block (2 levels) in batch' 24: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/commands/destroy/command.rb:50:in
block in execute'
23: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/plugin/v2/command.rb:186:in with_target_vms' 22: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/plugin/v2/command.rb:186:in
each'
21: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/plugin/v2/command.rb:204:in block in with_target_vms' 20: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/plugin/v2/command.rb:140:in
block in with_target_vms'
19: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/machine_index.rb:483:in vagrant_env' 18: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/util/silence_warnings.rb:8:in
silence!'
17: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/machine_index.rb:484:in block in vagrant_env' 16: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/machine_index.rb:484:in
new'
15: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:178:in initialize' 14: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:974:in
process_configured_plugins'
13: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:793:in vagrantfile' 12: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/environment.rb:793:in
new'
11: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/vagrantfile.rb:29:in initialize' 10: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:116:in
load'
9: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:116:in each' 8: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:119:in
block in load'
7: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:119:in each' 6: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:126:in
block (2 levels) in load'
5: from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/config/v2/loader.rb:37:in load' 4: from /private/var/root/Homestead/Vagrantfile:29:in
block in <top (required)>'
3: from /opt/vagrant/embedded/lib/ruby/2.7.0/psych.rb:277:in load' 2: from /opt/vagrant/embedded/lib/ruby/2.7.0/psych.rb:390:in
parse'
1: from /opt/vagrant/embedded/lib/ruby/2.7.0/psych.rb:456:in parse_stream' /opt/vagrant/embedded/lib/ruby/2.7.0/psych.rb:456:in
parse': (<unknown>): could not find expected ':' while scanning a simple key at line 6 column 1 (Psych::SyntaxError)
該当のソースコード
/opt/vagrant/embedded/lib/ruby/2.7.0/psych.rb:456:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 6 column 1 (Psych::SyntaxError)
ソースコード
試したこと
vagrantの再インストールをし、vagrant destroy "id"をしても同じエラーが出てしまいます。
$vi /opt/vagrant/embedded/lib/ruby/2.7.0/psych.rb:456:inで該当ファイルを開いて確認しようとしたのですが、できませんでした。
rm -R "laravelインストールした場所"で削除中。
補足情報(FW/ツールのバージョンなど)
VB、vagrant共に最新
あなたの回答
tips
プレビュー