Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

Can't run commands (beyond --help) on Windows in either Git Bash or Command Prompt windows #75

@kenny-evitt

Description

@kenny-evitt

I downloaded the gtt-win.exe file for version 1.7.31 from the Releases page:

I copied the executable to a directory in my path (for both Git Bash and Command Prompt) and created a second copy so that there are two copies, one named gtt and the other gtt.exe.

What I'm seeing in Git Bash:

kevitt@KEVITT-P3620 MINGW64 ~
$ gtt --help

  Usage: gtt [options] [command]

  Options:

    -V, --version             output the version number
    -h, --help                output usage information

  Commands:

    start [project] [id]      start monitoring time for the given project and resource id
    create [project] [title]  start monitoring time for the given project and create a new issue or merge request with the given title
    status                    shows if time monitoring is running
    stop                      stop monitoring time
    resume [project]          resume monitoring time for last stopped record
    cancel                    cancel and discard active monitoring time
    log                       log recorded time records
    sync                      sync local time records to GitLab
    edit [id]                 edit time record by the given id
    delete [id]               delete time record by the given id
    report [project] [ids]    generate a report for the given project and issues
    config                    edit the configuration file in your default editor
    help [cmd]                display help for [cmd]

kevitt@KEVITT-P3620 MINGW64 ~
$ gtt help config

kevitt@KEVITT-P3620 MINGW64 ~
$ gtt config

What I'm seeing in Command Prompt:

I:\>gtt --help

  Usage: gtt [options] [command]

  Options:

    -V, --version             output the version number
    -h, --help                output usage information

  Commands:

    start [project] [id]      start monitoring time for the given project and resource id
    create [project] [title]  start monitoring time for the given project and create a new issue or merge request with the given title
    status                    shows if time monitoring is running
    stop                      stop monitoring time
    resume [project]          resume monitoring time for last stopped record
    cancel                    cancel and discard active monitoring time
    log                       log recorded time records
    sync                      sync local time records to GitLab
    edit [id]                 edit time record by the given id
    delete [id]               delete time record by the given id
    report [project] [ids]    generate a report for the given project and issues
    config                    edit the configuration file in your default editor
    help [cmd]                display help for [cmd]

I:\>gtt help config
internal/modules/cjs/loader.js:594
    throw err;
    ^

Error: Cannot find module 'gtt-config'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:592:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1278:46)
    at Function.Module._load (internal/modules/cjs/loader.js:518:25)
    at Function.Module.runMain (pkg/prelude/bootstrap.js:1307:12)
    at startup (internal/bootstrap/node.js:274:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:608:3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions