问答详情
源自:2-2 Yeoman, Bower, Grunt简介及安装

yo -v 报错 系统是centos

[root@huajunshuo node_modules]# yo -v

Error: EACCES, permission denied '/root/.config/configstore/insight-yo.yml'
You don't have access to this file.

    at Object.fs.openSync (evalmachine.<anonymous>:439:18)
    at Object.fs.readFileSync (evalmachine.<anonymous>:290:15)
    at Object.create.all.get (/usr/lib/node_modules/yo/node_modules/configstore/index.js:34:29)
    at Object.Configstore (/usr/lib/node_modules/yo/node_modules/configstore/index.js:27:44)
    at new Insight (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:36:34)
    at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:117:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

提问者:浴见未来 2015-04-22 22:12

个回答

  • 浴见未来
    2015-04-23 13:07:17

    mkdir /root/.config/configstore
    chmod g+rwx /root /root/.config /root/.config/configstore

  • 浴见未来
    2015-04-23 13:01:41

    已自己解决

    chmod g+rwx /root /root/.config /root/.config/configstore