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

Any way to prevent using sudo? #14

Open
ronnaf opened this issue Oct 2, 2017 · 5 comments
Open

Any way to prevent using sudo? #14

ronnaf opened this issue Oct 2, 2017 · 5 comments

Comments

@ronnaf
Copy link

ronnaf commented Oct 2, 2017

Is there any way to prevent using sudo every time I run this thing? It can be very harmful.

@SamVerschueren
Copy link
Collaborator

SamVerschueren commented Oct 2, 2017

You mean with the CLI? You should never install global packages with sudo to begin with. https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md

After that, you shouldn't be forced to use sudo when using the cli.

@kevva
Copy link
Owner

kevva commented Oct 3, 2017

I think sudo is required to be able to run it on Linux regardless. There's an open PR which addresses this #11.

@huskyachao
Copy link

Did anybody meet with the problem when installing the packages?

npm WARN enoent ENOENT: no such file or directory, open '/home/achao/package.json'
npm WARN achao No description
npm WARN achao No repository field.
npm WARN achao No README data
npm WARN achao No license field.

#ubuntu 18.04.1 LTS

@aminnairi
Copy link

Sudo is not required on Linux if you add xorg-xbacklight as a dependency. See an example here https://github.com/i3bar/core/blob/db7cc783283020a45dac3e805fa6c6eb8f2fc6ee/example/utils.js#L87

@BVSPHari
Copy link

BVSPHari commented Feb 9, 2021

I'm facing similar issue 18 .

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

6 participants