Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Require sudo to store token? #65

Closed
jakejohns opened this issue Jun 28, 2016 · 1 comment
Closed

Require sudo to store token? #65

jakejohns opened this issue Jun 28, 2016 · 1 comment

Comments

@jakejohns
Copy link

It seems that the .git-labelmaker.bcup is written to /usr/local/lib/node_modules/git-labelmaker, which means that I need to be a privileged user (sudo git-labelmaker) to store my token?
eg. If i dont run with sudo first, I'm prompted for my token every time.

Would not it make more sense to use some XDG directory (data or config or something) to store the token under the users home directory? Or is intended functionality? Or am I confused about something else?

@himynameisdave
Copy link
Owner

Nope, this wasn't designed to require sudo to run. After some investigation, it seems that there is no need to use sudo if you have properly installed node/npm:

https://www.sitepoint.com/solve-global-npm-module-dependency-problem/#a-brief-note-on-security

I hope this helps, feel free to refile the issue if you are still seeing this after properly installing node. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants