繁体   English   中英

灰烬-路径或模式“ vendor / ic-ajax / dist / named-amd / main.js”与任何文件都不匹配

[英]Ember - Path or pattern “vendor/ic-ajax/dist/named-amd/main.js” did not match any files

我有一个ember-cli程序,可以在MacBook Pro上完美运行。 现在,我在另一台MacBook Pro上安装了ember,下载了相同的git repo并运行ember s ,这给了我这个错误跟踪:

compiler.js:17942:7)
    Walker.visit (/Users/Jensherf/shopstar-u/bower_components/ember/ember-template-compiler.js:17910:12)
    visitors.Program (/Users/Jensherf/shopstar-u/bower_components/ember/ember-template-compiler.js:17919:16)
Path or pattern "vendor/ic-ajax/dist/named-amd/main.js" did not match any files
Error: Path or pattern "vendor/ic-ajax/dist/named-amd/main.js" did not match any files
    at Object.multiGlob (/Users/Jensherf/shopstar-u/node_modules/broccoli-kitchen-sink-helpers/index.js:203:13)
    at Class.module.exports.CachingWriter.extend.addFiles (/Users/Jensherf/shopstar-u/node_modules/broccoli-sourcemap-concat/concat-with-maps.js:74:13)
    at Class.module.exports.CachingWriter.extend.updateCache (/Users/Jensherf/shopstar-u/node_modules/broccoli-sourcemap-concat/concat-with-maps.js:52:12)
    at /Users/Jensherf/shopstar-u/node_modules/broccoli-sourcemap-concat/node_modules/broccoli-caching-writer/index.js:92:34
    at lib$rsvp$$internal$$tryCatch (/Users/Jensherf/shopstar-u/node_modules/rsvp/dist/rsvp.js:489:16)
    at lib$rsvp$$internal$$invokeCallback (/Users/Jensherf/shopstar-u/node_modules/rsvp/dist/rsvp.js:501:17)
    at lib$rsvp$$internal$$publish (/Users/Jensherf/shopstar-u/node_modules/rsvp/dist/rsvp.js:472:11)
    at Object.lib$rsvp$asap$$flush [as _onImmediate] (/Users/Jensherf/shopstar-u/node_modules/rsvp/dist/rsvp.js:1290:9)
    at processImmediate [as _immediateCallback] (timers.js:345:15)

在此输出中,句子“ Path or pattern "vendor/ic-ajax/dist/named-amd/main.js" did not match any files ”为红色。

我不知道如何解决此问题。 为什么应用程序会在该库的vendor/文件夹中查找? 它不应该在Bower组件或节点模块中吗? 有谁知道这个文件应该是什么?

这是我的.gitignore文件,仅出于完整性考虑:

# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp

# dependencies
/node_modules
/bower_components

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
testem.log

ember-cli-ic-ajax回购中发现一个问题可能就是答案。

0.2.0仅在ember-cli的将来版本中有效,应使用0.1.4

https://github.com/rwjblue/ember-cli-ic-ajax/issues/11

在package.json中是否有“ ember-cli-ic-ajax”的条目? 如果不是,那是因为在另一台计算机上安装时忘记了--save。 您可以只在第一台笔记本电脑上进行npm install --save ember-cli-ic-ajax保存 (或手动编辑文件),然后提交更改,一切都应该很好。

我有同样的错误。 对我来说解决的是bower install ic-ajax --save 希望这对其他人有帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM