Heroku Toolbelt broken

heroku

#1

Hi,

I created a fresh workspace and tried to use the heroku toolbelt, but the CLI tries to update and then fails.

I tried to install the toolbelt using Heroku’s instructions:

wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
But that failed as well.

Any ideas how to get the Heroku toolbelt working on C9 IDE?

Thanks!

Below is the screen output when I try to run:

heroku version

$ heroku version
heroku-cli: Installing core plugins… !
▸ npm WARN enoent ENOENT: no such file or directory, open '/home/ubuntu/.heroku/package.json’
▸ npm WARN .heroku No description
▸ npm WARN .heroku No repository field.
▸ npm WARN .heroku No README data
▸ npm WARN .heroku No license field.
▸ npm ERR! Linux 4.2.0-c9
▸ npm ERR! argv “/home/ubuntu/.heroku/node-5.10.1-linux-amd64/node” “/home/ubuntu/.heroku/npm-3.8.5/cli.js” “remove” “heroku-apps” "heroku-cli-addons"
▸ npm ERR! node v5.10.1
▸ npm ERR! npm v3.8.5
▸ npm ERR! path /home/ubuntu/.heroku/node_modules/heroku-git
▸ npm ERR! code EXDEV
▸ npm ERR! errno -18
▸ npm ERR! syscall rename

▸ npm ERR! EXDEV: cross-device link not permitted, rename ‘/home/ubuntu/.heroku/node_modules/heroku-git’ -> '/home/ubuntu/.heroku/node_modules/.heroku-git.DELETE’
▸ npm ERR!
▸ npm ERR! If you need help, you may report this error at:
▸ npm ERR! https://github.com/npm/npm/issues

▸ npm ERR! Please include the following file with any support request:
▸ npm ERR! /home/ubuntu/.heroku/npm-debug.log
heroku-cli: Installing core plugins (retrying)… !
▸ Error installing package.
▸ npm WARN enoent ENOENT: no such file or directory, open '/home/ubuntu/.heroku/package.json’
▸ npm WARN .heroku No description
▸ npm WARN .heroku No repository field.
▸ npm WARN .heroku No README data
▸ npm WARN .heroku No license field.
▸ npm ERR! Linux 4.2.0-c9
▸ npm ERR! argv “/home/ubuntu/.heroku/node-5.10.1-linux-amd64/node” “/home/ubuntu/.heroku/npm-3.8.5/cli.js” “install” “heroku-apps” "heroku-cli-addons"
▸ npm ERR! node v5.10.1
▸ npm ERR! npm v3.8.5
▸ npm ERR! path /home/ubuntu/.heroku/node_modules/heroku-local
▸ npm ERR! code EXDEV
▸ npm ERR! errno -18
▸ npm ERR! syscall rename

▸ npm ERR! EXDEV: cross-device link not permitted, rename ‘/home/ubuntu/.heroku/node_modules/heroku-local’ -> '/home/ubuntu/.heroku/node_modules/.heroku-local.DELETE’
▸ npm ERR!
▸ npm ERR! If you need help, you may report this error at:
▸ npm ERR! https://github.com/npm/npm/issues

▸ npm ERR! Please include the following file with any support request:
▸ npm ERR! /home/ubuntu/.heroku/npm-debug.log

▸ Try running again with GODE_DEBUG=info to see more output.
! error getting commands pid 2285 exit 1


#2

I just tried heroku in a new workspace and it is still working fine. It is run as one of our integration tests before deploying a new version of anything to our workspaces as well.

It looks like you’re using node 5, I also get this error with node 5; you may want to report this issue upstream. It works on the default node v4 in our workspaces. node v6 also works fine.

edit: Just did some more testing; if you first run rm -rf ~/.heroku/node_modules after changing node versions it works fine.


#3

Thanks for the quick response. Your suggestion worked!

rm -rf ~/.heroku/node_modules
heroku version

Just FYI, I was using a default “HTML5” workspace and was using a default “Rails” workspace prior to that so I’m not sure how I ended up with a non-default Node version.

But I’m glad it works now.

Thanks again!