szepeviktor / composer-envato

Composer plugin for Envato 💚 Install WordPress themes and plugins from ThemeForest‎‎ and CodeCanyon
https://packagist.org/packages/szepeviktor/composer-envato
MIT License
33 stars 4 forks source link

Can't locate my plugin #11

Closed DannyTaki closed 1 year ago

DannyTaki commented 1 year ago

Have I messed up on the installation of the plugin. Composer can't seem to get my Envato plugin. I've ran composer global require --update-no-dev szepeviktor/composer-envato and created a config.json file and added the code

{
  "config": {
    "envato": {
      "token": "MY_TOKEN",
      "papckages": {
        "envato/woocommerce-pipedrive-crm-integration": {
          "item-id": 21721884,
          "type": "wordpress-plugin"
        }
      }
    }
  }
}

Then in my project's composer.json, I added "envato/woocommerce-pipedrive-crm-integration": "*" under "require": Running composer update outputs:

dannytaki@DESKTOP-DANNY:~/Alliance-Chemical/site$ composer update

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires envato/woocommerce-pipedrive-crm-integration, it could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
szepeviktor commented 1 year ago

Are you sure config.json is in the directory displayed by composer global config home ?

szepeviktor commented 1 year ago
  "papckages": {

... or there's a typo here

DannyTaki commented 1 year ago

OMG, you're right it worked!

DannyTaki commented 1 year ago

Now I got to figure out how to implement this with Trellis, that's awesome