获取以下错误。我尝试像sudo和我一样跑步。同样的错误。这是Linux薄荷罗莎。安装通过yo问卷调查,但失败的权限看起来像它。我是Linux新手。请帮忙。
create bower.json
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EACCES: permission denied, open '/home/mastermean/bower.json'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at write (/usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/commit.js:14:6)
at DestroyableTransform._transform (/usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/commit.js:43:7)
at DestroyableTransform.Transform._read (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_transform.js:172:10)
at DestroyableTransform.Transform._write (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_transform.js:160:12)
at doWrite (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_writable.js:335:12)
at writeOrBuffer (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_writable.js:321:5)
at DestroyableTransform.Writable.write (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_writable.js:248:11)
jul@jul-Inspiron-5558 /home/mastermean $

答案 0 :(得分:0)
尝试从终端运行:
cd ~
mkdir app
cd app
yo angular-fullstack
(可能需要将最后一个命令作为sudo yo angular-fullstack
运行,具体取决于如何安装yeoman。)
看起来文件bower.json没有写入权限。您可以通过修复现有权限来解决问题,但上述顺序可以帮助您解决问题。