heroku / heroku-pg-extras

A heroku plugin for awesome pg:* commands that are also great and fun and super.
MIT License
1.33k stars 102 forks source link

Fails to install on Ubuntu 18.04 #179

Closed adsteel closed 4 years ago

adsteel commented 4 years ago

Given Ubuntu 18.04

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

Given a Snap installation of Heroku installed and resfreshed:

$ which heroku
/snap/bin/heroku
$ sudo snap refresh heroku
snap "heroku" has no updates available

I should be able to install heroku-pg-extras via the CLI:

$ heroku plugins:install heroku-pg-extras -a appname
Installing plugin heroku-pg-extras... installed v1.2.2
error Missing list of packages to add to your project.
Installing plugin -a... !
Error: yarn add -a@latest --non-interactive --mutex=file:/home/adsteel/.local/share/heroku/yarn.lock --preferred-cache-folder=/home/adsteel/.cache/heroku/yarn --check-files --registry=https://registry.npmjs.org exited with code 1
    at ChildProcess.<anonymous> (/snap/heroku/3947/node_modules/@oclif/plugin-plugins/lib/yarn.js:31:28)
adsteel commented 4 years ago

This was due to trying to pass the app name. I didn't realize I was installing this locally, but of course I was :). Not passing the -a flag allowed it to succeed.