Using vagrant on powershell


While trying to edit the vagrantfile on my pc using PowerShell I get the error below when I input the command “vi vagrantfile” as indicated by the instructor.

vi : The term 'vi' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the

spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • vi vagrantfile
  • ~~
    • CategoryInfo : ObjectNotFound: (vi:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Anyone with a solution please?

Since you mentioned PowerShell, are you using Windows? Vi is not installed on windows, since it’s a Unix tool. There’s ways to install it, but just use a different editor.

Thanks @HerrSubset, yes I use windows. Please which other editor will you recommend for my windows pc?

Anything you like, you can probably even use notepad. Just google editors and see what you like