本文介绍了在ember-cli项目构建期间未生成供应商目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从一位同事那里建立/运行一个基于ember-cli的项目。当我尝试使用

 > ember server 

我收到以下错误:

 > ember server 
版本:0.0.40
ENOENT,没有这样的文件或目录vendor /
错误:ENOENT,没有这样的文件或目录vendor /
在Object。 fs.readdirSync(fs.js:654:18)
在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
在tryCatch(/ Users /ember/projects/ember/modal-example/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:163:16)
在invokeCallback(/ Users / ember / projects / ember / modal-example / node_modules / ember-cli / node_modules / rsvp / dist / commonjs / rsvp / -internal.js:172:17)
在发布(/ Users / ember / projects / ember / /node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:150:13)
在flush(/ Users / ember / projects / ember / modal-example / node_modules / ember- CLI / node_modul es / rsvp / dist / commonjs / rsvp / asap.js:51:9)
在process._tickCallback(node.js:415:13)

在启动服务器之前 - 我成功地运行了'npm install'和'bower install'。



任何帮助将非常感激。



谢谢

解决方案

你有没有项目中的 .bowerrc 文件?内容应该是:

  {
directory:vendor
}

然后运行 bower install 再次


I'm trying to build/run an ember-cli based project that I got from a colleague. When I try and run it with

> ember server

I'm getting the following error:

    > 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)

Before starting the server - I successfully ran both 'npm install' and 'bower install'.

Any help would be greatly appreciated.

Thanks

解决方案

do you have a .bowerrc file in the project? the content should be:

{
  "directory": "vendor"
}

Then run bower install again

这篇关于在ember-cli项目构建期间未生成供应商目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 10:36