I use Windows 10. When I run Heroku Cli (64) installation I get an error "PATH not updated, original length 1585 > 1024". How to solve this problem?
5 Answers
I got it to work on Windows 10.
I tried two things and I'm unsure which one got Heroku to work. The first thing you can try is adding it to PATH in CMD or Git Bash in this post.
You should also try to manually add it to PATH by going to Settings->Advanced System Settings->Environment Variables and adding a system variable with name PATH and with value "C:\Program Files\Heroku\bin" or wherever you have your heroku.exe file.
This will manually update the PATH.

- 738
- 1
- 7
- 10
-
2Thanks - my installer was frozen on the last step "add path blah blah" - I just went in there, clicked on the Path variable (bottom window - System variables), and when I hit "Edit" it brought up another list with all the environmental variables. I just added `C:\Program Files\Heroku\Bin` like you said and the installer completed. Thanks :) – user1274820 Aug 10 '18 at 16:10
I may be too late to answer this question but I'll share what worked for me, in case some one else ran into the same issue. Basically, with time my path variable had too many variables added to it, and apparently, there is a characters limit that can be added to the PATH variable. I deleted a few variables in the PATH that I do not need anymore, and that was all!

- 49
- 1
- 6
The Installer is trying to apply an environment variable to the Path. But there are already too many variables setup. Delete the ones that you no longer require and it should work. You could access the System Environment variables by visiting- Settings->Advanced System Settings->Environment Variables

- 439
- 6
- 25
I just came across with the same problem. The solution I used is similar to selflearningcode but instead of setting a system variable which failed, I set a user variable.
Try this after selflearningcode's answer, if you can echo %PATH%
and it displays heroku you should be good to go. Else, set a user variable on the same screen by adding a new entry to the path and it should work.
Note: Start a new terminal for the effects to be visible.

- 145
- 9
You might have to set Environment variables in Advanced System Settings. If there is already a path defined, just append your path with ;
ex: Existing path(It can be anything, just as an example): C:\Program Files (x86)\Google\Chrome\Application
If you want to add heroku path: C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files\Heroku\bin
Hope it works.

- 182
- 1
- 7