When I want to install express framework with yeoman express-generator, I get this kind of error:
Error: EACCES, permission denied '/home/tomek/dev/todoApp/todoBackend/node_modules'
at Object.fs.readdirSync (evalmachine.<anonymous>:659:18)
at Glob._readdir (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:682:20)
at Glob._process (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:458:15)
at Glob.iterator (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:193:10)
at Array.forEach (native)
at new Glob (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:191:22)
at glob (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:60:11)
at Function.globSync [as sync] (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:79:10)
at /usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/env/resolver.js:61:22
at Array.forEach (native)
I've tried "chowning" the /home/tomek/dev/todoApp/todoBackend/node_modules
directory to tomek
user, but it didn't work out well.
Is that some kind of bug? How can I get this working? I'm using elementaryOS Luna as my OS.