Ember CLI错误:文件已存在



我在启动Ember CLI应用程序时出现了一个看起来像"经典"的错误:

EEXIST, file already exists.

我已经咨询了

使用ember-cli 启动ember服务器

西兰花的问题似乎已经解决了?

我尝试删除node_modules文件夹和tmp文件夹,运行npm cache clear,然后运行npm install。但无济于事。

奇怪的是,在templates/application.js(下面错误中的引用文件)中从来没有文件。

ember server
version: 0.1.5
Using `app.import` with a file in the root of `vendor/` causes a significant per
formance penalty. Please move `bower_componentsmodernizrmodernizr.js` into a s
ubdirectory.
Using `app.import` with a file in the root of `vendor/` causes a significant per
formance penalty. Please move `bower_componentsfastclicklibfastclick.js` into
 a subdirectory.
Using `app.import` with a file in the root of `vendor/` causes a significant per
formance penalty. Please move `bower_componentsfoundationjsfoundation.js` int
o a subdirectory.
Livereload server on port 35729
Serving on http://0.0.0.0:4200/
EEXIST, file already exists 'C:file-pathtmptemplate_compil
er-tmp_dest_dir-0waBduix.tmpember-basetemplatesapplication.js'
Error: EEXIST, file already exists 'C:file-pathtmptemplate
_compiler-tmp_dest_dir-0waBduix.tmpember-basetemplatesapplication.js'
    at Object.fs.openSync (fs.js:432:18)
    at Object.fs.writeFileSync (fs.js:971:15)
    at Object.copyPreserveSync (C:file-pathnode_modulesemb
er-cli-emblemnode_modulesbroccoli-emblem-compilernode_modulesbroccoli-filter
node_modulesbroccoli-kitchen-sink-helpersindex.js:150:8)
    at C:file-pathnode_modulesember-cli-emblemnode_module
sbroccoli-emblem-compilernode_modulesbroccoli-filterindex.js:41:19
    at C:file-pathnode_modulesember-cli-emblemnode_module
sbroccoli-emblem-compilernode_modulesbroccoli-filternode_modulespromise-map
-seriesindex.js:11:14
    at $$$internal$$tryCatch (C:file-pathnode_modulesember
-cli-emblemnode_modulesbroccoli-emblem-compilernode_modulesbroccoli-filtern
ode_modulesrsvpdistrsvp.js:490:16)
    at $$$internal$$invokeCallback (C:file-pathnode_modules
ember-cli-emblemnode_modulesbroccoli-emblem-compilernode_modulesbroccoli-fi
lternode_modulesrsvpdistrsvp.js:502:17)
    at $$$internal$$publish (C:file-pathnode_modulesember-
cli-emblemnode_modulesbroccoli-emblem-compilernode_modulesbroccoli-filterno
de_modulesrsvpdistrsvp.js:473:11)
    at Object.$$rsvp$asap$$flush [as _onImmediate] (C:file-pathnode_modulesember-cli-emblemnode_modulesbroccoli-emblem-compilernode_mod
ulesbroccoli-filternode_modulesrsvpdistrsvp.js:1581:9)
    at processImmediate [as _immediateCallback] (timers.js:336:15)

发现问题!

我使用的是ember-cli-emblem,在templates文件夹中有一个application.hbs和一个application.emblem

显然,这是不允许的,必须有一个或另一个。

相关内容

  • 没有找到相关文章