Aurelia JSPM安装-y在窗口上不起作用 [英] Aurelia JSPM install -y not working on window
问题描述
我正在做aurelia教程 http://aurelia.io/get-started.html
I am doing the aurelia tutorial http://aurelia.io/get-started.html
我正在尝试使用gulp和jspm安装aurelia依赖项.我运行"jspm install -y"没有问题.
Im trying to install aurelia dependencies using gulp and jspm. I runned "jspm install -y" with no problem.
当我转到浏览器并打开控制台时,出现此错误:
And when I go to the browser and open the console i have this error:
localhost/:5 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/npm/font-awesome@4.2.0/css/font-awesome.min.css 404 (Not Found)
es6-module-loader.src.js:2563 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/github/aurelia/loader-default@0.4.3.js 404 (Not Found)
es6-module-loader.src.js:140 Potentially unhandled rejection [3] Error loading "github:aurelia/loader-default@0.4.3" at http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/github/aurelia/loader-default@0.4.3.js
Error loading "github:aurelia/loader-default@0.4.3" from "github:aurelia/bootstrapper@0.9.5" at http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/github/aurelia/bootstrapper@0.9.5.js
Not Found: http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/github/aurelia/loader-default@0.4.3.js (WARNING: non-Error used)
es6-module-loader.src.js:2563 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/github/aurelia/logging-console@0.2.4.js 404 (Not Found)
es6-module-loader.src.js:2563 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/github/aurelia/binding@0.3.7.js 404 (Not Found)
es6-module-loader.src.js:2563 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/github/aurelia/templating@0.8.14.js 404 (Not Found)
我尝试通过以下方式解决此问题:
I try to fix this with:
- npm卸载jspm -g,然后npm安装jpsm -g
- npm安装jspm
- 安装-g -f npm安装-gf jspm/jspm-cli
但是它不起作用. 您能帮我解决这个问题吗
But it does not work. Can you help me with this issue pls
推荐答案
似乎您已使用-g在全局范围内进行了卸载,并尝试在没有-g的情况下进行安装.
It seems that you uninstalled globally with -g and tried to install without it.
无论如何,对我有用的是:
Anyway, what worked for me was:
以Admin身份启动cmd提示符,全局安装gulp和jspm(-g选项) 然后导航到您的应用程序文件夹,并使用npm和jspm安装所有依赖关系
Start a cmd prompt as Admin, install gulp and jspm globally (-g option) Then navigate to your app folder and install all depencies with npm then jspm
这篇关于Aurelia JSPM安装-y在窗口上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!