Closed
Description
Do you want to request a feature or report a bug?
bug
What is the current behavior?
EACCES
$ gulp
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EACCES: permission denied, open '/root/.yarn-cache/.global/node_modules/arr-flatten/index.js'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Object.Module._extensions..js (module.js:415:20)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/root/.yarn-cache/.global/node_modules/arr-diff/index.js:10:15)
at Module._compile (module.js:409:26)
If the current behavior is a bug, please provide the steps to reproduce.
sudo npm i -g yarn
sudo yarn global add gulp
gulp
What is the expected behavior?
correct permissions
Please mention your node.js, yarn and operating system version.
Node v4.4.6
Yarn 0.15.1
Gentoo Stable