【问题标题】:aurelia - example, error installing dependenciesaurelia - 示例,安装依赖项时出错
【发布时间】:2016-08-16 10:54:54
【问题描述】:

我一直在关注 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>

【问题讨论】:

    标签: aurelia


    【解决方案1】:

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

    1. 从控制面板卸载你的 git 客户端

    2. 下载并安装此客户端而不是https://git-scm.com/download/win

    3. 再次尝试创建新的 Aurelia 项目

    【讨论】:

    • 可以手动设置环境变量。那里有大量的教程。我总是这样做,因为我喜欢 github 客户端,因为它有 diff 功能,但我在我的 IDE 中使用 CLI。
    • 对于其他可能遇到与我相同问题的人:我在 aurealia-cli 之前没有安装 git。卸载 aurelia-cli 使用:npm uninstall aurelia-cli,然后重新安装,然后再次创建项目为我解决了问题。
    猜你喜欢
    • 2018-03-02
    • 1970-01-01
    • 2017-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-18
    • 1970-01-01
    • 2020-08-27
    相关资源
    最近更新 更多