Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experiencing a syntax error after running the 'vagrant up' command from the vdd directory:
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
/home/nick/Hosts/vdd/Vagrantfile:12: syntax error, unexpected ':', expecting kEND
config.vm.network :private_network, ip: vdd_config["ip"]
^
/home/nick/Hosts/vdd/Vagrantfile:27: syntax error, unexpected ':', expecting kEND
...], folder["guest_path"], type: "nfs"
^
Not sure if this is an operator error, or a conflict in the script.
Comments
Comment #1
ericrdb CreditAttribution: ericrdb commentedHi nhepner1,
Could you try with a clean clone of vdd? I'm not getting that error.
Alternatively, you might check the config.json. Perhaps missing a closing quote on the IP declaration on line 2?
Comment #2
danylevskyiDefinitely it's JSON syntax error. You can use http://jsonlint.com/ to check your JSON syntax.
Comment #3
danylevskyiComment #4
kadimi CreditAttribution: kadimi commentedThe possible reason is using an unsupported version of Vagrant
Avoid
~$ sudo apt-get install vagrant
Instead, doawnload from https://www.vagrantup.com/downloads and run:
~$ sudo dpkg -i vagrant_blah-_blah.deb