Search code examples
herokucommand-lineheroku-toolbelt

Updating To Heroku Toolbelt v4 gets Access Denied Error


Annoying out of nowhere my Heroku toolbelt always attempts to update anytime I make a Heroku command. This wouldn't be so bad if it actually did update but no matter what permissions I give to the desination folder or CMD I get an Access is Denied error.

This makes executing commands on with Heroku extremely time consuming because it always re-downloads the update and fail in setting up Node before executing the command I ask it to.

Below is an example of what the error looks like.

Installing Heroku Toolbelt v4... done.
For more information on Toolbelt v4: https://github.com/heroku/heroku-cli
Setting up node-v4.1.1... ▸    rename C:\Users\Anthony\.heroku\tmp\download110460667\file C:\Users\Anthony\.heroku\node-v4.1.1-windows-x86\bin\node.exe: Access is denied.
error loading plugin commands
error loading plugin topics
error loading plugin commands

Solution

  • I fixed this by deleting the folders Username/.heroku , and Username/AppData/Local/heroku, (Replace "Username" with your username) then run heroku login results in a successful install of node, after that it seems to work smoothly (so far). Probably deleting the first folder isn't necessary -- but that's what I did in any case.

    Good luck

    PS: Running on Windows 8