Heroku uses very current releases of Node.js and does not back-support older versions. This installation method does not autoupdate and requires you to use your system’s version of Node.js, which may be older than the version Heroku develops the CLI against.
It’s strongly recommended to use one of the other installation methods if possible. This is a manual install method that can be used in environments where autoupdating is not ideal or where Heroku does not offer a prebuilt Node.js binary.
The CLI is built with Node.js and is installable via npm. This package is community maintained and not by Heroku. Use the snap or standalone installation for an autoupdating version of the CLI. This version does not autoupdate and must be updated manually via apt-get. xz is much smaller but gz is more compatible. These are available in gz or xz compression. Otherwise, download one of the tarballs below and extract it yourself. To quickly setup into /usr/local/lib/heroku and /usr/local/bin/heroku, run this script (script requires sudo and not Windows compatible): $ curl | sh It contains its own node.js binary and will autoupdate like the above install methods. The standalone install is a simple tarball with a binary. Other installation methods Standalone installation Snap is available on other Linux OS’s as well. Run the following from your terminal: $ sudo snap install -classic heroku