跳到主要内容
CNode

yeoman 生成 controller报错Unable to find app/index.html

问答
Yyeelone发布于 11 年前
035230

刚开始学习yeoman ,莫名其妙间得到如下的报错,求教解决方法 。

yeelone@yee:~/dev/hr$ yo angular:controller about ✖ Unable to find app/index.html. Reference to controllers/about.js not added.

create app/scripts/controllers/about.js create test/spec/controllers/about.js

配置方面没有改变过,都是默认(使用的是 yeoman 的 generator-angular)。 配置方面检查过,应该没有问题: Gruntfile.js : // Configurable paths for the application var appConfig = { app: require('./bower.json').appPath || 'app', dist: 'dist' };

bower.json : "appPath": "app",

google搜索Unable to find app/index.html ,得到的结果只有寥寥几个,而且无解决方法。不知道 哪位朋友有遇到过,求教这个错误是什么原因

查看回复

回复 (0)

暂无回复,成为第一个参与讨论的人。

参与回复

登录后即可参与回复。登录