我正在尝试构建/运行我从同事那里获得的基于ember-cli的项目。当我尝试用
运行它时> ember server
我收到以下错误:
> ember server
version: 0.0.40
ENOENT, no such file or directory "vendor/"
Error: ENOENT, no such file or directory "vendor/"
at Object.fs.readdirSync (fs.js:654:18)
at walkSync (/Users/ember/projects/ember/modal-example/node_modules/ember-cli/node_modules/walk-sync/index.js:14:20)
at /Users/ember/projects/ember/modal-example/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:26:26
at tryCatch (/Users/ember/projects/ember/modal-example/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:163:16)
at invokeCallback (/Users/ember/projects/ember/modal-example/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:172:17)
at publish (/Users/ember/projects/ember/modal-example/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:150:13)
at flush (/Users/ember/projects/ember/modal-example/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/asap.js:51:9)
at process._tickCallback (node.js:415:13)
在启动服务器之前 - 我成功运行了'npm install'和'bower install'。
非常感谢任何帮助。
由于
答案 0 :(得分:1)
项目中有.bowerrc
个文件吗?内容应该是:
{
"directory": "vendor"
}
然后再次运行bower install
答案 1 :(得分:0)
显式添加.bowerrc文件有效 - 但事实证明我真正需要做的就是运行......
> ember init
一旦我跑了,就为我创建了.bowerrc文件。