Giter Club home page Giter Club logo

Comments (14)

doczoidberg avatar doczoidberg commented on April 28, 2024 1

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?

from angular-cli.

jimthedev avatar jimthedev commented on April 28, 2024

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?

from angular-cli.

jimthedev avatar jimthedev commented on April 28, 2024

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

from angular-cli.

HansS avatar HansS commented on April 28, 2024

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

from angular-cli.

HansS avatar HansS commented on April 28, 2024

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.

from angular-cli.

jimthedev avatar jimthedev commented on April 28, 2024

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

from angular-cli.

thitemple avatar thitemple commented on April 28, 2024

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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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-github-com-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

from angular-cli.

jimthedev avatar jimthedev commented on April 28, 2024

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.

from angular-cli.

thitemple avatar thitemple commented on April 28, 2024

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.

from angular-cli.

JohannesHoppe avatar JohannesHoppe commented on April 28, 2024

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

from angular-cli.

doczoidberg avatar doczoidberg commented on April 28, 2024

I can also confirm this.

from angular-cli.

IgorMinar avatar IgorMinar commented on April 28, 2024

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.

from angular-cli.

hamzahamidi avatar hamzahamidi commented on April 28, 2024

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

from angular-cli.

angular-automatic-lock-bot avatar angular-automatic-lock-bot commented on April 28, 2024

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.

from angular-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.