-
Notifications
You must be signed in to change notification settings - Fork 12k
angular-cli install fails on windows #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you have your SSH keys set up properly? Looks like perhaps the keys in /home/Hans/.ssh are invalid. Can you check the permissions on that directory and try to clone any repo from github using ssh instead of http? |
Also you should upgrade your node version to latest (or anything over 4.1.0). Some dependencies of this project require it. |
I have updated to node 4.2.1 now! Directory of C:\Users\Hans.ssh 20.07.2015 18:22 .20.07.2015 18:22 .. 07.01.2014 17:35 1 675 github_rsa 07.01.2014 17:35 394 github_rsa.pub 18.12.2014 12:50 1 671 github_ssh 18.12.2014 12:50 411 github_ssh.pub 20.07.2015 18:22 1 675 id_boot2docker 20.07.2015 18:22 394 id_boot2docker.pub 11.02.2014 18:12 1 675 id_rsa2 11.02.2014 18:12 394 id_rsa2.pub 18.12.2014 13:15 2 394 known_hosts 9 File(s) 10 683 bytes 2 Dir(s) 15 312 261 120 bytes free |
git clone with ssh: what do i have to do? (thank's for your support!) Please make sure you have the correct access rights |
Have you generated an ssh key and added it to your github profile? There are steps here: https://help.github.com/articles/generating-ssh-keys/#platform-windows |
I'm also having a problem when installing on windows. λ npm install -g angular-cli npm ERR! Command failed: git -c core.longpaths=true clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-d003f125 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-2dbfe6d3093a\ae5e72614e40f5e6dd57463e526c65da899fde07 npm ERR! Please include the following file with any support request: |
Why does a simple tool like this need a ssh key? I think the angular-cli should make the setup process easier instead more complicated? |
My guess is that it uses github to get sources and github requires ssh keys if you don't want to fall victim to random throttling errors over https. |
Ok, for me the problem was the version of git that I had installed on my machine. I had git 1.8.* now I have git 2.6 and I was able to install it. |
I can confirm this. Had to update git to latest version. Does somebody knows the minimal required git version? see also #46 - its not easy to get angular-cli running on windows! 😟 |
I can also confirm this. |
folks, please keep in mind that this is a prototype - not a production solution, so some setup issues are to be expected. In this case it seems that the git version used by npm to install some dependencies was outdated. |
For future reference, you can have this error when you try install angular/cli BUT you should install @angular/cli @angular/cli is the correct package
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "i" "-g" "angular-cli" npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\Hans\AppData\Roaming\npm-cache_git-remotes_templates --mirror [email protected]:ember-cli/ember-cli.git C:\Users\Hans\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-d003f125
npm ERR! Cloning into bare repository 'C:\Users\Hans\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-d003f125'...
npm ERR! Could not create directory '/home/Hans/.ssh'.
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Hans\npm-debug.log
The text was updated successfully, but these errors were encountered: