gpt4 book ai didi

node.js - Yeoman angularjs 脚手架错误

转载 作者:太空宇宙 更新时间:2023-11-03 23:40:24 24 4
gpt4 key购买 nike

我正在尝试运行此命令:

yo angular

但它给了我这个错误:

**/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:84
if (_.isString(componentConfigFile.main)) {
^
TypeError: Cannot read property 'main' of undefined
at findMainFiles (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:84:37)
at /usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:146:17
at forOwn (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:1301:15)
at Function.forEach (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:2595:9)
at detectDependencies (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:28:5)
at wiredep (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/wiredep.js:57:39)
at Generator._injectDependencies (/usr/local/lib/node_modules/generator-angular/app/index.js:326:5)
at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:232:13
at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:113:21
at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:24:16**

如何修复以上错误?注意:我运行的是 Ubuntu 14.04

最佳答案

问题是 Git 没有安装,因为 yeoman 尝试通过 Git 获取 Bower_components

关于node.js - Yeoman angularjs 脚手架错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24802060/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com