cedricium / amo-cli

💻 A CLI tool used for interacting with the Mozilla Addons (AMO)
https://cedric.tech/amo-cli/
MIT License
0 stars 0 forks source link

BUG: paths are misconfigured for globally-installed amo-cli packages #9

Closed cedricium closed 6 years ago

cedricium commented 6 years ago

When attempting to use amo-cli w/ v0.2.0 and above, the following warnings are thrown:

WARNING: No configurations found in configuration directory:/Users/cedricamaya/config

It's warning that the config file cannot be found in the pwd, which is not where it should be looking for it. Rather, it needs an absolute path to the installed amo-cli package root.

cedricium commented 6 years ago

Specifically an issue with the node-config dependency - setting the config directory as a node env variable seems to fix the issue.

Refs: https://github.com/lorenwest/node-config/wiki/Configuration-Files#config-directory