require 'request' only in node version