【问题标题】:Yeoman angularjs generator brokenYeoman angularjs 生成器坏了
【发布时间】:2014-04-05 21:33:30
【问题描述】:

我只是用我的 php lavarel 项目文件夹创建了一个名为“assets”的空目录并发出以下命令 -> yo angular,然后在终端中,我被要求包含 sass/compass、bootstrap 等并开始安装这个生成器。不知何故,我遇到了很多错误,我不知道这是什么原因。我需要一些帮助,这里是错误。

npm npm ERR!http Error: ENOTEMPTY, rmdir 'xxx/app/assets/node_modules/grunt/lib'
 GET https://registry.npmjs.org/optimist
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd xxx/app/assets
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path xxx/app/assets/node_modules/grunt/lib
npm ERR! code ENOTEMPTY
npm ERR! errno 53

npm ERR! Error: ENOENT, open 'xxx/app/assets/node_modules/grunt/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd xxx/app/assets
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path xxx/app/assets/node_modules/grunt/package.json
npm ERR! code ENOENT
npm ERR! errno 34

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     xxx/app/assets/npm-debug.log
npm ERR! not ok code 0

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     xxx/assets/npm-debug.log
npm ERR! not ok code 0

【问题讨论】:

  • 您能按说明检查 npm-debug.log 的内容吗?

标签: angularjs yeoman yeoman-generator


【解决方案1】:

看起来您的用户并不拥有您的项目文件夹。 chownchmod 您的文件夹,以便它与您的用户帐户一起使用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-19
    • 2016-11-19
    • 1970-01-01
    • 1970-01-01
    • 2015-09-05
    • 1970-01-01
    相关资源
    最近更新 更多