aurelia – 例如,安装依赖项时出错

前端之家收集整理的这篇文章主要介绍了aurelia – 例如,安装依赖项时出错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我一直在关注Aurelia网站上的这些例子:

http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/contact-manager-tutorial/2

我运行’au new’并按照提示进行操作,然后进入“你想安装项目依赖项”问题,然后我说“是”,然后失败并出现以下错误.有谁知道为什么?我安装了Node.JS和GIT客户端.

Would you like to install the project dependencies?

1. Yes (Default)
   Installs all server,client and tooling dependencies needed to build
   the project.
2. No
   Completes the new project wizard without installing dependencies.

[Yes]> 1

Installing project dependencies.
npm ERR! git clone --template=C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-ecf98f08: undefined
npm ERR! git clone --template=C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-ecf98f08: undefined
npm ERR! git clone --template=C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-gulpjs-gulp-git-4-0-4b46db44: undefined
npm ERR! git clone --template=C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-gulpjs-gulp-git-4-0-4b46db44: undefined
npm ERR! git clone --template=C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801: undefined
npm ERR! git clone --template=C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\jnixon\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801: undefined

C:\Windows\System32>

解决方法

我安装了GitHub桌面应用程序(116MB).似乎这没有正确设置环境变量,所以我使用了另一个(较小的客户端).这有效……

>从控制面板卸载git客户端
>下载并安装此客户端,而不是https://git-scm.com/download/win>再次尝试创建一个新的Aurelia项目

猜你在找的设计模式相关文章