【问题标题】:Permission denied when using Yeoman to scaffold an application使用 Yeoman 搭建应用程序时权限被拒绝
【发布时间】:2014-10-22 16:03:35
【问题描述】:

我正在尝试使用 Yeoman 和 Angular 建立一个新项目。我尝试过“yo angular”和“yo app”,但两次都收到相同的错误。我对终端也不是很有经验。

Error: EACCES, permission denied '/Users/adam/.config/configstore/update-notifier-yo.yml'
You don't have access to this file.

    at Object.fs.openSync (evalmachine.<anonymous>:438:18)
    at Object.fs.readFileSync (evalmachine.<anonymous>:289:15)
    at Object.create.all.get (/usr/local/lib/node_modules/yo/node_modules/configstore/configstore.js:33:29)
    at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/configstore/configstore.js:26:44)
    at new UpdateNotifier (/usr/local/lib/node_modules/yo/node_modules/update-notifier/index.js:25:17)
    at module.exports (/usr/local/lib/node_modules/yo/node_modules/update-notifier/index.js:118:23)
    at Object.<anonymous> (/usr/local/lib/node_modules/yo/cli.js:146:18)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

如何通过终端访问此文件并构建 Yeoman 项目?

【问题讨论】:

    标签: angularjs node.js terminal npm yeoman


    【解决方案1】:

    您是否尝试过这里提出的解决方案?

    https://github.com/yeoman/yeoman/issues/1097

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-09
      • 2017-09-06
      • 2021-07-30
      • 1970-01-01
      • 2016-06-04
      • 2013-05-12
      • 1970-01-01
      相关资源
      最近更新 更多