Yo Webapp: EACCES error, permission denied "Gruntfile.js"

I try to install any yoman generator, and I always always get an EACCESS error, permission is denied since I switched to Linux.

 fs.js:432
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: EACCES, permission denied 'Gruntfile.js'
    at Object.fs.openSync (fs.js:432:18)
    at Object.fs.writeFileSync (fs.js:971:15)
    at Appgenerator.<anonymous> (/usr/local/lib/node_modules/generator-webapp/node_modules/yeoman-generator/lib/actions/actions.js:217:10)
    at processImmediate [as _immediateCallback] (timers.js:336:15)

I am running node v0.10.29 and npm v1.4.14 and Zorin OS8 Codename Saucy. If I install "yo webapp-gulp", the error message says: "EACCES, permission denied" Gulpfile.js "

I know that "Error EACCES" is often here, and I seriously read about many threats, but there was nothing. So many thanks.

Edit: Even the gazebo will not work, because I get this message if I want to install any package:

 Error: EACCES, open '/home/george/.cache/bower/packages/c667e980af216b85bcc1c0800106f136-2.0.5.lock'
+4
source share
2

:

 chmod -R 777 .

, . , , dev-.

, ( "www" "home" ( , )) chmod .

+1

, bash root. , ,

--allow-root

.

, , ,

, .cache,

bower cache clean

,

, ( , ) do

chown -R youruser:youruser path/.cache/bower 

".", ,

chmod -R ... youruser:youruser path/.cache/bower 

.

Bye

+1

Source: https://habr.com/ru/post/1545587/


All Articles