cli-engine
cli-engine copied to clipboard
plugin stuck as installed if ctrl-c during install
▸ 'MODULE_NOT_FOUND': Cannot find module '/Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka'
Repairing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka... !
▸ Error parsing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka
Repairing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka... !
▸ yarn install --force --non-interactive --mutex=file:/Users/fvieira/Library/Caches/heroku/yarn --cache-folder=/Users/fvieira/Library/Caches/heroku/yarn exited with code 1
▸ warning No license field
▸ error An unexpected error occurred: "https://cli-npm.heroku.com/heroku--kafka: no such package available".
▸
Repairing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka... done
Installing plugin heroku-kafka... !
▸ 'MODULE_NOT_FOUND': Cannot find module '/Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka'
Repairing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka... !
▸ Error parsing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka
Repairing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka... !
▸ yarn install --force --non-interactive --mutex=file:/Users/fvieira/Library/Caches/heroku/yarn --cache-folder=/Users/fvieira/Library/Caches/heroku/yarn exited with code 1
▸ warning No license field
▸ error An unexpected error occurred: "https://cli-npm.heroku.com/heroku--kafka: no such package available".
▸
Repairing plugin /Users/fvieira/.local/share/heroku/plugins/node_modules/heroku--kafka... !
▸ yarn --non-interactive --mutex=file:/Users/fvieira/Library/Caches/heroku/yarn --cache-folder=/Users/fvieira/Library/Caches/heroku/yarn exited with code 1
▸ warning No license field
▸ error An unexpected error occurred: "https://cli-npm.heroku.com/heroku--kafka: no such package available".
▸
[3:12 PM]
i had to manually remove heroku--kafka
from ~/.local/share/heroku/plugins/package.json
from @fnando
this happens because we add the plugin to package.json, then attempt to install. We could either add a ctrl-c hook or somehow know that the installation wasn't successful and remove it instead of attempting to repair later
a related problem that should also be resolved: if some kind of error is causing plugins:uninstall to fail it can't continue to uninstall the plugin