gpt4 book ai didi

aurelia - 示例,安装依赖项时出错

转载 作者:行者123 更新时间:2023-12-01 01:57:58 26 4
gpt4 key购买 nike

我一直在关注 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 项目
  • 关于aurelia - 示例,安装依赖项时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38973029/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com