brightness
brightness copied to clipboard
Any way to prevent using `sudo`?
Is there any way to prevent using sudo
every time I run this thing? It can be very harmful.
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.
I think sudo
is required to be able to run it on Linux regardless. There's an open PR which addresses this https://github.com/kevva/brightness/pull/11.
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
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
I'm facing similar issue 18 .