Animesh Animesh - 9 months ago 61
Node.js Question

Unable to create yeoman webapp

I get this when I try to create a webapp with


throw err;
Error: EACCES, permission denied '/root/.config/configstore/insight-yo.yml'
You don't have access to this file.

at Object.fs.openSync (fs.js:436:18)
at Object.fs.writeFileSync (fs.js:975:15)
at Object.create.all.set (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:56:8)
at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:19:11)
at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/insight.js:23:34)
at process.<anonymous> (/usr/local/lib/node_modules/yo/node_modules/insight/lib/push.js:11:16)
at process.emit (events.js:98:17)
at handleMessage (child_process.js:322:10)
at (child_process.js:349:11)

I googled and I tried the following things, but it didn't help:

chown root /root/.config/configstore/insight-yo.yml

chown myusername /root/.config/configstore/insight-yo.yml

and ran it, and no luck yet.

I am on Debian Wheezy and have npm 1.4.4.

Answer Source

I was facing the same issue. I ran the command below, It fixed my problem:

mkdir -p /root/.config/configstore

chmod g+rwx /root /root/.config /root/.config/configstore