基本 Aurelia 设置
Basic Aurelia Setup
我正在关注这个:http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/quick-start/1
我刚刚下载了 Aurelia 基本设置,我在我的本地主机中 运行。
我认为下载基本设置将 运行 正常,无需我做任何事情。
我错过了什么?
我的控制台出现了这个错误:
index.html:18 GET http://0.0.0.0:35729/livereload.js?snipver=1 net::ERR_CONNECTION_REFUSED
system.js:4 GET http://localhost:8000/src/main.ts 404 (Not Found)
Error: (SystemJS) Error: XHR error (404 Not Found) loading http://localhost:8000/src/main.ts
Error loading http://localhost:8000/src/main.ts
您应该按照教程进行到底。 ZIP 文件还没有准备好 运行,它只是提供了一些基本结构。您仍然需要自己添加应用程序源(如教程中所示)。
完成教程后,您应该可以看到一个应用程序。
获取 运行ning 应用程序的更快方法(无需遵循完整教程)是使用 Aurelia CLI:
- 安装 NodeJS:https://nodejs.org/en/
- 安装 Aurelia-CLI:
npm install aurelia-cli -g
- 创建项目:
au new
(按照描述的步骤操作)
cd <project dir> && au run
我正在关注这个:http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/quick-start/1
我刚刚下载了 Aurelia 基本设置,我在我的本地主机中 运行。
我认为下载基本设置将 运行 正常,无需我做任何事情。
我错过了什么?
我的控制台出现了这个错误:
index.html:18 GET http://0.0.0.0:35729/livereload.js?snipver=1 net::ERR_CONNECTION_REFUSED
system.js:4 GET http://localhost:8000/src/main.ts 404 (Not Found)
Error: (SystemJS) Error: XHR error (404 Not Found) loading http://localhost:8000/src/main.ts
Error loading http://localhost:8000/src/main.ts
您应该按照教程进行到底。 ZIP 文件还没有准备好 运行,它只是提供了一些基本结构。您仍然需要自己添加应用程序源(如教程中所示)。
完成教程后,您应该可以看到一个应用程序。
获取 运行ning 应用程序的更快方法(无需遵循完整教程)是使用 Aurelia CLI:
- 安装 NodeJS:https://nodejs.org/en/
- 安装 Aurelia-CLI:
npm install aurelia-cli -g
- 创建项目:
au new
(按照描述的步骤操作) cd <project dir> && au run