Ember - 路径或模式 "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
我的 MacBook Pro 上有一个 ember 应用程序,带有 ember-cli 运行。现在我在另一台 MacBook Pro 上安装了 ember,下载了相同的 git 存储库和 运行 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/
文件夹中查找此库?它不应该在凉亭组件或节点模块中吗?有谁知道这个文件中应该包含什么?
这是我的 .git为了完整性而忽略文件:
# 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
package.json 中有 "ember-cli-ic-ajax" 的条目吗?如果不是,那是因为您在另一台机器上安装时忘记了 --save。您可以在第一台笔记本电脑上执行 npm install --save ember-cli-ic-ajax (或手动编辑文件)然后提交您的更改一切都应该很好。
我有同样的错误。为我解决的是 bower install ic-ajax --save
。希望这对其他人有帮助。
在 ember-cli-ic-ajax
存储库中发现了一个可能是答案的问题。
0.2.0 is only valid with a future version of ember-cli, you should use 0.1.4
我的 MacBook Pro 上有一个 ember 应用程序,带有 ember-cli 运行。现在我在另一台 MacBook Pro 上安装了 ember,下载了相同的 git 存储库和 运行 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/
文件夹中查找此库?它不应该在凉亭组件或节点模块中吗?有谁知道这个文件中应该包含什么?
这是我的 .git为了完整性而忽略文件:
# 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
package.json 中有 "ember-cli-ic-ajax" 的条目吗?如果不是,那是因为您在另一台机器上安装时忘记了 --save。您可以在第一台笔记本电脑上执行 npm install --save ember-cli-ic-ajax (或手动编辑文件)然后提交您的更改一切都应该很好。
我有同样的错误。为我解决的是 bower install ic-ajax --save
。希望这对其他人有帮助。
在 ember-cli-ic-ajax
存储库中发现了一个可能是答案的问题。
0.2.0 is only valid with a future version of ember-cli, you should use 0.1.4