Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chef - ERROR: RuntimeError: Please set EDITOR environment variable

Tags:

chef-infra

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?

like image 830
GigaPr Avatar asked Mar 22 '13 13:03

GigaPr


1 Answers

You have to define EDITOR as environment variable.

Try

export EDITOR=$(which vi) 

To persist this, add it to ~/.bashrc or ~/.bash_profile.

like image 186
StephenKing Avatar answered Oct 13 '22 08:10

StephenKing