我已经通过了Scott Allen的应用程序,并让我的奥雷利亚应用程序完美地运行在视觉工作室。
由于某些原因,我无法在WebStorm中获得相同的结果。我的index.html身体看起来像:
<body aurelia-app>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.import("aurelia-bootstrapper");
</script>
</body>我遇到了一个控制台错误
可能未处理的拒绝3错误加载"github:aurelia/bootstrapper@0.14.0“在packages/github/aurelia/bootstrapper@0.14.0.js上
完整的错误如下所示:

它看起来像是在试图抓取一个文件boostrapper@0.14.0.js,而这实际上是一个文件夹。为什么我无法在网络风暴中获得与在visual中完全相同的代码?
下面是我配置的引导程序部分:
"github:aurelia/bootstrapper@0.14.0": {
"aurelia-event-aggregator": "github:aurelia/event-aggregator@0.6.1",
"aurelia-framework": "github:aurelia/framework@0.13.2",
"aurelia-history": "github:aurelia/history@0.6.0",
"aurelia-history-browser": "github:aurelia/history-browser@0.6.1",
"aurelia-loader-default": "github:aurelia/loader-default@0.9.0",
"aurelia-logging-console": "github:aurelia/logging-console@0.6.0",
"aurelia-router": "github:aurelia/router@0.10.1",
"aurelia-templating": "github:aurelia/templating@0.13.2",
"aurelia-templating-binding": "github:aurelia/templating-binding@0.13.0",
"aurelia-templating-resources": "github:aurelia/templating-resources@0.13.0",
"aurelia-templating-router": "github:aurelia/templating-router@0.14.0",
"core-js": "npm:core-js@0.9.18"
},和运行jspm -v产量
C:\Users\Jones\WebstormProjects\Aurelia>jspm -v
0.15.7
Running against global jspm install.发布于 2015-07-09 12:51:16
看起来它在试图抓取一个文件-- boostrapper@0.14.0.js,而这实际上是一个文件夹。
实际上,应该有这样一个文件夹和一个.js:
jspm_packages\github\aurelia\bootstrapper@0.14.0.js // descriptor
jspm_packages\github\aurelia\bootstrapper@0.14.0 // folder在您的例子中,.js似乎不见了。我还是不知道这是什么时候/为什么会发生,但是当其他事情似乎没有解决的时候,我只是蛮力地.
(假设您提到的windows b/c,visual studio)
打开cmd:
cd C:\Users\Jones\WebstormProjects\Aurelia
jspm install aurelia-bootstrapper --force--force应该替换缺少的.js:
jspm_packages\github\aurelia\bootstrapper@0.14.0.js如果该文件存在,重新启动您的应用程序,您应该是好的。
发布于 2015-07-09 02:43:12
您能检查您的config.js文件并搜索bootstrapper以查看您已安装的版本吗?另外,请让我知道你在控制台中的jspm版本-
$ jspm -v只要您的config.js中的引导程序为0.14.0,而且您的jspm是最近的版本(而不是beta版),您就应该很好,如果不让我知道或者尝试一下我们的gitter通道@ http://gitter.im/aurelia/discuss --如果您不能立即解决PM我的问题,我们可以解决这个问题,我会更新答案。
https://stackoverflow.com/questions/31307127
复制相似问题