Comments (14)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
I can also confirm this.
from angular-cli.
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.
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.
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)
- @angular-devkit/build-angular v17.3.3 uses webpack-dev-server v4.15.1 which is scanned as vulnerability HOT 1
- Angular with ESBuild produces massive number of tiny chunks HOT 4
- css located in style tag inside of a template is not getting minified HOT 1
- Please reconsider adding support for `--poll` option for `ng build` when building libraries HOT 4
- Dynamic require of "@angular/platform-browser" is not supported HOT 11
- Restart Build if changes occur during ng build --watch HOT 1
- ng build with node package not polyfill HOT 5
- `loader` option in the `application` builder does not work for *.css files. HOT 4
- Esbuild error while deploying Angular 16.2.12 +node 16.15.1 using Jenkins, but the ng build works fine in local. The same project deployed successfully with Angular 15 and node 14. HOT 1
- Add supprt for OSC 8 for filepath in output HOT 1
- SSR v17 app won't let docker expose application port HOT 1
- Angular SSR Issue: When attempting to execute npm run start, it appears that Express is not running to enable hot reload. HOT 3
- CSS source maps are not created with application builder (Angular 17) HOT 1
- Asset referenced with CSS variables not found using application-builder HOT 6
- Tests using `web-test-runner` time out waiting for the browser to start
- Could not resolve "zone.js/node" HOT 6
- Support webpack-dev-server v5 HOT 1
- Routing not working in application under projects folder HOT 1
- Replace usages of '@nguniversal/' packages with '@angular/ssr'. × Migration failed HOT 1
- headers for dev-server not working anymore after upgrade from angular 16 to 17 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli.