Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku CLI installation error: "PATH not updated, original length 1585 > 1024"

Tags:

heroku

laravel

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?

like image 482
Evgeniy Miroshnichenko Avatar asked Jun 01 '17 07:06

Evgeniy Miroshnichenko


4 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.

like image 103
selflearningcode Avatar answered Nov 14 '22 02:11

selflearningcode


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!

like image 1
Harjot Avatar answered Nov 14 '22 04:11

Harjot


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

like image 1
user3402248 Avatar answered Nov 14 '22 04:11

user3402248


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.

like image 1
Abhiram Natarajan Avatar answered Nov 14 '22 04:11

Abhiram Natarajan