Skip to content

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

Closed
HansS opened this issue Oct 21, 2015 · 14 comments
Closed

angular-cli install fails on windows #42

HansS opened this issue Oct 21, 2015 · 14 comments

Comments

@HansS
Copy link

HansS commented Oct 21, 2015

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

@jimthedev
Copy link
Contributor

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?

@jimthedev
Copy link
Contributor

Also you should upgrade your node version to latest (or anything over 4.1.0). Some dependencies of this project require it.

@HansS
Copy link
Author

HansS commented Oct 21, 2015

I have updated to node 4.2.1 now!
when try to install angular-cli: still same error! -> i do have a .ssh -> see below:
C:\Users\Hans>dir .ssh
Volume in drive C is Windows
Volume Serial Number is AEB8-B189

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

@HansS
Copy link
Author

HansS commented Oct 21, 2015

git clone with ssh: what do i have to do? (thank's for your support!)
C:\Users\Hans\web\bootcamps\udacity\front-end-2015-10>git clone ssh://github.com/HansS/about-me.git about-me-ssh
Cloning into 'about-me-ssh'...
Could not create directory '/home/Hans/.ssh'.
The authenticity of host 'github.com (192.30.252.128)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/Hans/.ssh/known_hosts).
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@jimthedev
Copy link
Contributor

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

@thitemple
Copy link

I'm also having a problem when installing on windows.
I'm running node -v 4.1.2

λ npm install -g angular-cli
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07: Cloning into 'C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07'...
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07: done.
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07: fatal: cannot create directory at 'tests/fixtures/preprocessor-tests/app-with-addon-with-preprocessors-2/node_modules/ember-cool-addon/node_modules/dummy-preprocessor': No such file or directory
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07: warning: Clone succeeded, but checkout failed.
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07: You can inspect what was checked out with 'git status'
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07: and retry the checkout with 'git checkout -f HEAD'
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07:
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\git-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-60fdf976 C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-dc3ae07cc822\ae5e72614e40f5e6dd57463e526c65da899fde07:
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07: Cloning into 'C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07'...
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07: done.
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07: fatal: cannot create directory at 'tests/fixtures/preprocessor-tests/app-with-addon-with-preprocessors-2/node_modules/ember-cool-addon/node_modules/dummy-preprocessor': No such file or directory
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07: warning: Clone succeeded, but checkout failed.
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07: You can inspect what was checked out with 'git status'
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07: and retry the checkout with 'git checkout -f HEAD'
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07:
npm ERR! git clone C:\Users\tvtemple\AppData\Roaming\npm-cache_git-remotes\https-jiasu.xzqcsaa.nyc.mn-ember-cli-ember-cli-git-eefd487f C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-ef848ee6b02f\ae5e72614e40f5e6dd57463e526c65da899fde07:
npm ERR! git 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: Cloning into 'C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-2dbfe6d3093a\ae5e72614e40f5e6dd57463e526c65da899fde07'...
npm ERR! git 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: done.
npm ERR! git 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: fatal: cannot create directory at 'tests/fixtures/preprocessor-tests/app-with-addon-with-preprocessors-2/node_modules/ember-cool-addon/node_modules/dummy-preprocessor': No such file or directory
npm ERR! git 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: warning: Clone succeeded, but checkout failed.
npm ERR! git 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: You can inspect what was checked out with 'git status'
npm ERR! git 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: and retry the checkout with 'git checkout -f HEAD'
npm ERR! git 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! git 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! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "angular-cli"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code 128

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! Cloning into 'C:\Users\tvtemple\AppData\Local\Temp\npm-5584-6e66eb8d\git-cache-2dbfe6d3093a\ae5e72614e40f5e6dd57463e526c65da899fde07'...
npm ERR! done.
npm ERR! fatal: cannot create directory at 'tests/fixtures/preprocessor-tests/app-with-addon-with-preprocessors-2/node_modules/ember-cool-addon/node_modules/dummy-preprocessor': No such file or directory
npm ERR! warning: Clone succeeded, but checkout failed.
npm ERR! You can inspect what was checked out with 'git status'
npm ERR! and retry the checkout with 'git checkout -f HEAD'
npm ERR!
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\tvtemple\npm-debug.log

@doczoidberg
Copy link

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?

@jimthedev
Copy link
Contributor

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.

@thitemple
Copy link

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.

@JohannesHoppe
Copy link
Contributor

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! 😟

@doczoidberg
Copy link

I can also confirm this.

@IgorMinar
Copy link
Contributor

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.

@hamzahamidi
Copy link

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
angular/cli is the wrong package

npm i -g @angular/cli
yarn add @angular/cli

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants