Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我将 ember-cli 项目添加到 git 上的存储库后,node_moduls 中有一些未跟踪的文件(node_modules 中没有 js 文件)。据我所知,ember 从 package.json 配置中添加了必要的文件。但是当我尝试构建这个项目时,它写道找不到 ember-cli/lib/broccoli/ember-app
在你习惯git clone了获取 repo 之后,你需要安装 node 和 bower 依赖项。ember-cli当您创建一个新项目时(请参阅您的.gitignore文件),这些是故意从 repo 中遗漏的。
git clone
ember-cli
.gitignore
安装节点依赖项(位于/node_modules/): npm install
/node_modules/
npm install
安装 bower 依赖项(位于/bower_components/或(在 0.0.41 或更早版本中)/vendor/): bower install
/bower_components/
/vendor/
bower install
一旦你安装了这些,你就可以ember build.
ember build