jira-cmd icon indicating copy to clipboard operation
jira-cmd copied to clipboard

Jira config returns error

Open angelod1as opened this issue 2 years ago • 5 comments

Running jira config for the first time returns:

TypeError: program.prompt is not a function
    at Object.ask (/Users/angelo/.config/yarn/global/node_modules/jira-cmd/lib/auth.js:48:17)
    at Object.setConfig (/Users/angelo/.config/yarn/global/node_modules/jira-cmd/lib/auth.js:69:14)
    at Command.<anonymous> (/Users/angelo/.config/yarn/global/node_modules/jira-cmd/bin/jira.js:374:14)
    at Command.listener [as _actionHandler] (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:922:31)
    at Command._parseCommand (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1503:14)
    at Command._dispatchSubcommand (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1443:18)
    at Command._parseCommand (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1460:12)
    at Command.parse (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1292:10)
    at /Users/angelo/.config/yarn/global/node_modules/jira-cmd/bin/jira.js:412:11
    at Object.execCb (/Users/angelo/.config/yarn/global/node_modules/requirejs/bin/r.js:1941:33)

angelod1as avatar Aug 04 '22 08:08 angelod1as

@angelod1as can you please share node, npm or yarn version you are using. operating system you are using? and command you used to install jira-cmd it will help in debugging

palashkulsh avatar Aug 04 '22 11:08 palashkulsh

@palashkulsh sorry, my bad.

  • yarn 1.22.19
  • macOS 12.5 (21G72)
  • yarn global add jira-cmd

angelod1as avatar Aug 04 '22 12:08 angelod1as

tested it with fresh installation, its working on my system : (

palashkulsh avatar Aug 31 '22 10:08 palashkulsh

I removed it and re-installed it. Then, I do as the docs explain and run jira for the first time. Instead of login, it gives me:

~ ❯ jira                                            took  7s at  09:47:16
Usage: jira [options] [command]

Options:
  -V, --version                                       output the version number
  -h, --help                                          display help for command

Commands:
  ls [options]                                        List my issues
  start <issue>                                       Start working on an issue.
... (it shows the whole help output)

Is the docs misleading?

When I go to $HOME/.jira: cd: no such file or directory: /Users/angelo/.jira

angelod1as avatar Sep 05 '22 07:09 angelod1as

please try running jira ls command

On Mon, Sep 5, 2022 at 1:20 PM Angelo Dias @.***> wrote:

I removed it and re-installed it. Then, I do as the docs explain and run jira for the first time. Instead of login, it gives me:

~ ❯ jira took  7s at  09:47:16

Usage: jira [options] [command]

Options:

-V, --version output the version number

-h, --help display help for command

Commands:

ls [options] List my issues

start Start working on an issue.

... (it shows the whole help output)

Is the docs misleading?

When I go to $HOME/.jira: cd: no such file or directory: /Users/angelo/.jira

— Reply to this email directly, view it on GitHub https://github.com/palashkulsh/jira-cmd/issues/133#issuecomment-1236656161, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLYFLYGMDRS2INLOHHIZ5LV4WQ3XANCNFSM55RXKGIQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Regards Palash Kulshreshtha paytm +91 9027450334

palashkulsh avatar Sep 05 '22 10:09 palashkulsh