2016-08-16 31 views
4

我一直在關注的奧裏利亞網站,並與這一個例子:Aurelia大街 - 例如,錯誤安裝depencies

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

我跑「金新」,並按照通過提示和它到達「你想安裝項目依賴關係」問題,我說是,然後失敗,出現下面的錯誤。有沒有人有一個想法,爲什麼?我安裝了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 [email protected]: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 [email protected]: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> 

回答

3

我安裝了GitHub桌面應用程序(116MB)。似乎這不會正確設置環境變量,所以我使用了其他(小型客戶端)。這個工作......

  1. 卸載你的git客戶端從控制面板

  2. 下載並安裝此客戶端,而不是https://git-scm.com/download/win

  3. 嘗試重新創建一個新的項目奧裏利亞

+0

你可以手動設置環境變量。那裏有大量的教程。我總是這樣做,因爲我喜歡github客戶端,因爲** diff **功能,但我在我的IDE中使用CLI。 – Randy

+0

感謝蘭迪,明白這一點。 – Philip

+0

這工作,謝謝@詹姆斯! – Homer