heroku / heroku-repo

Plugin for heroku CLI that can manipulate the repo
MIT License
689 stars 114 forks source link

Error Installing Plugin: Request Failed 404 Not Found #85

Closed etagwerker closed 6 years ago

etagwerker commented 6 years ago

Hi there,

I'm trying to install the plugin on mac os x (10.13.6) but I keep getting this error:

heroku plugins:install https://github.com/heroku/heroku-repo.git
warning https://github.com/heroku/heroku-repo.git > heroku-cli-util > netrc-parser > debug@3.2.4: `debug` versions 3.2.0-3.2.2 break Node 4. Users of node LTS and onward (modern Node versions): please upgrade to `debug@4` or above as soon as possible. Node 4 users: please pin to `debug@>=3.2.3 <4` as it will be the last version range that supports Node@4.
warning https://github.com/heroku/heroku-repo.git > heroku-run > cli-engine-heroku > http-call > debug@3.2.4: `debug` versions 3.2.0-3.2.2 break Node 4. Users of node LTS and onward (modern Node versions): please upgrade to `debug@4` or above as soon as possible. Node 4 users: please pin to `debug@>=3.2.3 <4` as it will be the last version range that supports Node@4.
error An unexpected error occurred: "http://cli-npm.heroku.com/ansi-escapes/-/ansi-escapes-3.1.0/f73207bb81207d75fd6c83f125af26eea378ca30.tgz: Request failed \"404 Not Found\"".
Installing plugin https://github.com/heroku/heroku-repo.git... !
Error: yarn add https://github.com/heroku/heroku-repo.git --non-interactive --mutex=file:/Users/etagwerker/.local/share/heroku/yarn.lock --preferred-cache-folder=/Users/etagwerker/Library/Caches/heroku/yarn --check-files --registry=https://registry.npmjs.org exited with code 1
    at ChildProcess.forked.on (/usr/local/Cellar/heroku/7.15.0/lib/client/7.14.4/node_modules/@oclif/plugin-plugins/lib/yarn.js:31:28)

Here is the version of the Heroku CLI that I'm using:

heroku version
heroku/7.14.4 darwin-x64 node-v10.9.0

I also tried with version 7.15.0 but I get the same error.

I thought that there was a problem with my version of yarn, so I upgraded that too but it didn't change anything.

yarn --version
1.9.4

I found this issue but I'm pretty sure that my error is not solved by any of the fixes suggested there: https://github.com/heroku/heroku-repo/issues/53

I get the same error if I try: heroku plugins:install heroku-repo

Do you know what could be wrong with my environment?

Thanks!

dmathieu commented 6 years ago

cc @heroku/cli

jdx commented 6 years ago

Try uninstalling and reinstalling. If that doesn't work, delete rm ~/.local/heroku/yarn.lock

etagwerker commented 6 years ago

@jdxcode Awesome, that did it! Though the location of yarn.lock was somewhere else:

rm ~/.local/share/heroku/yarn.lock
heroku plugins:install heroku-repo
warning "heroku-repo > heroku-run > cli-engine-heroku@4.1.1" has unmet peer dependency "cli-engine-command@^8.0.0".
warning "heroku-repo > heroku-run > cli-engine-heroku@4.1.1" has unmet peer dependency "cli-engine-config@^3.0.0".
Installing plugin heroku-repo... installed v1.0.12

Thank you! ❤️