Chef: How to set EDITOR for knife

When I run below command I get the error mentioned below: $ knife node edit hostname.domain.com ERROR: You must set your EDITOR environment variable or configure your editor via knife.rb I wanted...