Install grunt-cli before attempting to use it.  Restrict installs to specific versions to avoid unintended upgrades