我有一个余烬的应用程序和烬-cli运行在我的MacBook专业完美。现在,我已经在另一个MacBook Pro上安装了ember,下载了相同的gives并运行了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/文件夹中查找这个库?它不应该在更多的组件或节点模块中吗?有人知道这个文件里应该是什么吗?
为了完整起见,这里是我的.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发布于 2015-06-30 18:53:50
在ember-cli-ic-ajax回购上发现了一个问题,这可能是答案。
0.2.0只适用于未来版本的成员-cli,您应该使用0.1.4
发布于 2015-06-29 17:44:49
你有在package.json中的“余烬-cli”条目吗?如果不是,那是因为你忘了你可以只做npm安装-保存成员-cli-ic-ajax的第一台笔记本电脑(或只是编辑文件手动),然后提交您的更改,一切都应该是好的。
发布于 2015-06-30 05:42:27
我也犯了同样的错误。为我解决这个问题的是bower install ic-ajax --save。希望这对其他人都有帮助。
https://stackoverflow.com/questions/31115242
复制相似问题