Window Install heroku cli with npm

0. My Node

node: v10.15.1, npm: 6.4.1

1. Ready For command with Python27 + Cmake:


$ cmake --version

cmake version 3.22.0

CMake suite maintained and supported by Kitware (

$ python --version

Python 2.7.18

2. Ready: "Microsoft Visual Studio\2017\BuildTools":

Example: "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe"

3. NPM command:

$ npm config set msvs_version 2017 -g

$ npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe" -g

$ npm install -g heroku

4. Note:

For ready python, cmake.. in cmd. Add environment PATH, that includes python.exe, cmake.exe, ...

WITH python, can set with command: (I use python 3 and don't want change PATH)

$ npm config set python "C:\Python27\python.exe"

Hate cmd.exe, try :

Get: msbuild tools 2017. Dirrect install or try:

$ npm install -g --production windows-build-tools --vs2017

(Run "cmd.exe" as administrator. It can hover between three and eight gigabytes (all to get some dependencies installed!). The install can take upwards of 30 minutes depending on your connection, so don’t despair if it seems like the install is hanging for a while.)


WITH NPM INSTALL: It’s strongly recommended to use one of the other installation methods if possible. 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. Heroku uses very current releases of Node.js and does not back-support older versions. If you use any of the other installation methods the proper version of Node.js is already included, and it doesn’t conflict with any other version on your system...

You can try with: msbuild tools 2015 (npm config set msvs_version 2015 -g). I found link:

Microsoft Build Tools 2015:

Microsoft Build Tools 2019 ???? 

I think: Need node, npm, node-gyp newer