Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn global install is broken #76

Closed
glensc opened this issue Oct 16, 2018 · 5 comments
Closed

yarn global install is broken #76

glensc opened this issue Oct 16, 2018 · 5 comments

Comments

@glensc
Copy link

glensc commented Oct 16, 2018

βž” yarn global add gitlab-time-tracker --prefix /usr/local
yarn global v1.10.1
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...
success Installed "gitlab-time-tracker@1.7.31" with binaries:
      - gtt
✨  Done in 14.37s.

βž” gtt
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]

βž” gtt sync
error: gtt-sync(1) does not exist, try --help

βž” gtt config
error: gtt-config(1) does not exist, try --help

βž” type gtt
gtt is hashed (/usr/local/bin/gtt)

βž”

this is on MacOS with node v8.12.0

@glensc glensc changed the title install/install instructions incorrect yarn global install is broken Oct 16, 2018
@nisnis123
Copy link

I am facing the same error with yarn and node v10.12

@nisnis123
Copy link

Same on Linux Mint 19

@glensc
Copy link
Author

glensc commented Oct 26, 2018

some suggest this problem is in tj/commander.js#866

noted via Homebrew/homebrew-core#32154 (comment)

@ghost
Copy link

ghost commented Jan 25, 2019

As a workaround, one can use the provided docker image.

See https://github.com/kriskbx/gitlab-time-tracker/blob/master/documentation.md#docker

This was not an obvious option when I stumbled on this issue.

@kriskbx
Copy link
Owner

kriskbx commented Jan 31, 2019

It works for me on Ubuntu 18.04. and macOS 10.14. Tested with node version 8.12 & 10.12, gtt version 1.7.34 and yarn version 1.13.0. I updated some dependencies in 1.7.32 and I hope this now fixed. Feel free to reopen the issue if the problem still exists.

@kriskbx kriskbx closed this as completed Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants