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

Don't write to install directory #16

Closed
andischan opened this issue Jan 21, 2017 · 5 comments
Closed

Don't write to install directory #16

andischan opened this issue Jan 21, 2017 · 5 comments

Comments

@andischan
Copy link

If you have installed wikidata-cli with your distros package manager (e.g. pacman) and not with npm, you have to run it with root rights. Otherwise you'll get:
EACCES: permission denied, open '/usr/lib/node_modules/wikidata-cli/props/de.json'

@maxlath
Copy link
Owner

maxlath commented Jan 21, 2017

Thanks for reporting. Isn't it a duplicate of #9?

@maxlath
Copy link
Owner

maxlath commented Jan 21, 2017

I guess a temporary fix could be to run sudo chmod -R 666 /usr/lib/node_modules/wikidata-cli/props, but it doesn't solve the general problem. Where should a module write files?

@andischan
Copy link
Author

Yes, it's the same bug like #9 .

Can node apps write to ~/.config or to ~/.wikidata-cli?

@maxlath
Copy link
Owner

maxlath commented Jan 24, 2017

It could, but I would like to know first if there is a standard and cross platform way to do that for node modules. Writing directly in the home folder doesn't feel super clean, maybe a subfolder like .config or .local indeed

maxlath added a commit that referenced this issue Jan 28, 2017
instead of writing in the module folder
addressing #9 and #16
maxlath added a commit that referenced this issue Jan 28, 2017
instead of writing in the module folder
fixed #9 and #16
@maxlath
Copy link
Owner

maxlath commented Jan 28, 2017

should be fixed in 4.1.2

@maxlath maxlath closed this as completed Jan 28, 2017
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

2 participants