Chef - ERROR: RuntimeError: Please set EDITOR environment variable
chef-infra
Solution
You have to define `EDITOR` as environment variable.
Try
export EDITOR=$(which vi)
To persist this, add it to `~/.bashrc` or `~/.bash_profile`.
Problem
I've installed successfully chef on my workstation but when i am trying to create a role using the following command ``` knife role create startmeup ``` I get ERROR: RuntimeError: Please set EDITOR environment variable Any idea what the problem is?