错误:EACCESS,在Object.fs.mkdirSync中拒绝权限

时间:2015-06-15 21:37:07

标签: node.js bash yeoman meanjs yeoman-generator

尝试安装meanjs时出现此错误:crud-module

Error: EACCES, permission denied '/opt/mean/public/modules/trees'
at Error (native)
at Object.fs.mkdirSync (fs.js:751:18)
at Function.sync (/usr/local/lib/node_modules/generator-meanjs/node_modules/yeoman-generator/node_modules/mkdirp/index.js:71:13)
at yeoman.generators.NamedBase.extend.renderModule (/usr/local/lib/node_modules/generator-meanjs/crud-module/index.js:87:8)
at /usr/local/lib/node_modules/generator-meanjs/node_modules/yeoman-generator/lib/base.js:395:14
at processImmediate [as _immediateCallback] (timers.js:358:17)

我基本上chown / chmod我服务器上的每个文件夹,并且我已经使用sudo npm和-g几次不同的时间卸载/重新安装了你。无法弄清楚。有人帮我吗?

0 个答案:

没有答案