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

insight-yo.json permission denied #3

Open
mbettan opened this issue Jul 8, 2017 · 1 comment
Open

insight-yo.json permission denied #3

mbettan opened this issue Jul 8, 2017 · 1 comment

Comments

@mbettan
Copy link

mbettan commented Jul 8, 2017

Hello,

After running following command, I have an blocking error:

Command:

yo hubot --owner="you@all.org" --name="omi" --description="OMi bot" --defaults

Error:

root@40fd72d5d9d3:~/hubot# yo hubot --owner="you@all.org" --name="omi" --description="OMi bot" --defaults
/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
                                throw err;
                                ^

Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.

    at Object.fs.openSync (fs.js:651:18)
    at Object.fs.readFileSync (fs.js:553:33)
    at Configstore.get (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
    at Configstore.get (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:13)
    at Insight.get (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
    at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:194:47)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)

Any ideas how to solve this ? It's not a permission issue, it looks like related to npm binnary.
What OS are you using ?

Thank you

@kisshore
Copy link

Change user, After i read multiple git hub pages ,
I just used non root user & it worked. Let me know if you are unable to do so.

#yo --- Wrong
$yo --- Correct

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