Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EACCES error using Yeoman to install angular

I tried running

yo angular --coffee --minsafe

but I get this error

   Error: EACCES, permission denied '/Users/Basil/.config/configstore/insight-yo.yml'
        at Object.fs.openSync (fs.js:427:18)
        at Object.fs.writeFileSync (fs.js:966:15)
        at Object.create.all.set (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:39:7)
        at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:30:11)
        at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/insight.js:20:16)
        at Object.<anonymous> (/usr/local/lib/node_modules/yo/bin/yo:26:15)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)

I have checked the issues on Github and seen npm / yeoman install generator-angular without sudo but can't seem to get it to work

node v0.10.17 npm v1.2.10

find / -name 'yeoman'

/Users/Basil/.node/node_modules/.bin/yeoman /Users/Basil/.node/node_modules/yeoman /Users/Basil/.node/node_modules/yeoman/bin/yeoman /Users/Basil/.node/node_modules/yeoman/node_modules/yeoman-generators/lib/generators/yeoman /Users/Basil/.npm/yeoman /Users/Basil/.npm/yeoman/0.9.6/package/bin/yeoman /Users/Basil/.npm/yeoman-generators/0.9.5/package/lib/generators/yeoman

like image 722
bsiddiqui Avatar asked Dec 01 '22 03:12

bsiddiqui


1 Answers

I was able to fix this issue with this:

Sudo chown Basil /Users/Basil/.config/configstore/update-notifier-yo.yml

If you run into this issue, try this out, replacing "Basil" with your username

like image 169
bsiddiqui Avatar answered Dec 04 '22 04:12

bsiddiqui