This can occur if you install Vagrant in a folder containing spaces. For example, C:\Program Files\HashiCorp\Vagrant
instead of the default C:\HashiCorp\Vagrant
.
Two solutions are available to you:
- Reinstall Vagrant to a folder without any spaces (eg. the default installation folder)
- Modify your PATH environmental variable to use the legacy folder shortnames in place of folders with spaces. For example,
Program Files
becomesPROGRA~1
andProgram Files (x86)
becomesPROGRA~2
(in most cases, you should verify this yourself by typing these paths in and verifying the two shortnames map to the same folders as I specified).
To modify your environmental variables, go to Control Panel, System, Advanced System Settings, click on the Advanced Tab, and then click the Environmental Variables button at the bottom of the window. In the System variables frame, select the Path variable and then click Edit. From there, change the path of your Vagrant bin to use shortnames in place of folders with spaces. In my case, since I installed Vagrant in Program Files (x86)
directory, my Path variable looks something like this:
[semi-colon delimited list of other paths];C:\PROGRA~2\HashiCorp\Vagrant\bin
After you've done this, open a new command prompt and try your plugin installation again.