One-click app MEAN Access error

July 4, 2016 1.8k views
MEAN DigitalOcean

Hi, i created one click app MEAN
Then i try to use YO and i have error

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

    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at Object.create.all.get (/usr/lib/node_modules/yo/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/usr/lib/node_modules/yo/node_modules/configstore/index.js:27:44)
    at new Insight (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:37:34)
    at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:172:11)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)

I type this as root…

1 comment
  • Can you do an ls -al /root/.config/configstore/insight-yo.json and send back the results? Thanks!

1 Answer

It’s likely this file is either set to permissions that allow for no read/write, or the file is owned by another user, with no access to read/write for root. You should be able to resolve this by using either chown root or chmod 755.

Have another answer? Share your knowledge.