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

Runtime error #17

Closed
bzg opened this issue Feb 21, 2017 · 4 comments
Closed

Runtime error #17

bzg opened this issue Feb 21, 2017 · 4 comments

Comments

@bzg
Copy link

bzg commented Feb 21, 2017

After installing with sudo npm install -g wikidata-cli I get this error when running wd config or other commands presented in the README.md - any idea what I'm doing wrong? node -v (through nvm) is 6.8.1

fs.js:248
  binding.access(pathModule._makeLong(path), mode);
          ^

Error: ENOENT: no such file or directory, access '/home/guerry/.config/wikidata-cli'
    at Error (native)
    at Object.fs.accessSync (fs.js:248:11)
    at Object.writeAccessSync (/usr/local/lib/node_modules/wikidata-cli/lib/fs.js:26:8)
    at module.exports (/usr/local/lib/node_modules/wikidata-cli/lib/get_folder_path.js:18:8)
    at Object.<anonymous> (/usr/local/lib/node_modules/wikidata-cli/lib/config/file_path.js:2:51)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
@maxlath
Copy link
Owner

maxlath commented Feb 21, 2017

thanks for reporting!
It seems lib/get_folder_path.js is to blame: it tries to get access rights on a folder that wasn't previously created. I'm working on a patch.
Meanwhile, it should be solved by running mkdir ~/.config/wikidata-cli

@bzg
Copy link
Author

bzg commented Feb 21, 2017

Thanks for the quick reply, I confirm the quick fix!

@maxlath
Copy link
Owner

maxlath commented Feb 21, 2017

@bzg v4.5.1 ships with the patch, you can get it by running sudo npm install -g wikidata-cli@latest. You don't really need it though, now that you created the folder.

@bzg
Copy link
Author

bzg commented Feb 21, 2017

Thanks!

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