angular.js - 用yeoman安装angular报错
習慣沉默
習慣沉默 2017-05-15 16:54:15
0
1
489

用yo安装angular的时候出现了这样的错误?

/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:46
                                throw err;
                                      ^
Error: EACCES, permission denied '/root/.config/configstore/insight-yo.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at Object.create.all.get (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:27:26)
    at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:20:44)
    at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:37:34)
    at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:130:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)

習慣沉默
習慣沉默

全部回复(1)
Ty80

这个问题我遇到过
1. 给该目录/文件添加你正在使用的组用户权限,STFG
2. 别用root用户安装

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板