Skip to content

unable to install angular-cli #2416

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
eanastacio20 opened this issue Sep 29, 2016 · 6 comments
Closed

unable to install angular-cli #2416

eanastacio20 opened this issue Sep 29, 2016 · 6 comments

Comments

@eanastacio20
Copy link

3918 verbose stack Error: not found: git
3918 verbose stack at getNotFoundError (C:\JStudio\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
3918 verbose stack at F (C:\JStudio\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
3918 verbose stack at E (C:\JStudio\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
3918 verbose stack at C:\JStudio\nodejs\node_modules\npm\node_modules\which\which.js:90:16
3918 verbose stack at C:\JStudio\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
3918 verbose stack at C:\JStudio\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
3918 verbose stack at FSReqWrap.oncomplete (fs.js:123:15)
3919 verbose cwd C:\Users\Eric
3920 error Windows_NT 10.0.10586
3921 error argv "C:\JStudio\nodejs\node.exe" "C:\JStudio\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "angular-cli@latest"
3922 error node v6.7.0
3923 error npm v3.10.3
3924 error code ENOGIT
3925 error not found: git
3926 error Failed using git.
3926 error This is most likely not a problem with npm itself.
3926 error Please check if you have git installed and in your PATH.
3927 verbose exit [ 1, true ]

@celliott181
Copy link
Contributor

celliott181 commented Sep 29, 2016

3925 error not found: git
You don't have Git, Git for Windows, or the Github app installed. This is a requirement to properly use NPM, Angular 2, and the Angular 2 CLI.

@adam-beck
Copy link

adam-beck commented Sep 29, 2016

@gelliott181 this wasn't always the case for Angular 2 CLI and it looks like there is only 1 dependency that is being resolved with github (compression-webpack-plugin). I'm assuming this version has a bug fix that was needed. So once that package is updated on npm this issue will likely be resolved. Until then this breaks for those that don't have the benefit of using git/github .

P.S. you don't need git to use npm or even Angular 2

@filipesilva
Copy link
Contributor

There's some NPM functionality that definitely needs git, and NPM3 is a hard requirement to be able to resolve Angular 2 dependencies properly.

It's true that only that only compression-webpack-plugin needs it, and that we have a temporary git dependency until a release gets cut.

@adam-beck
Copy link

adam-beck commented Oct 5, 2016

There's some [npm] functionality that definitely needs git

npm, as I understand it, has no dependencies on a VCS to use except for when trying to resolve dependencies with the git:// protocol.

I'm not sure but since npm understands git urls (as seen below) would using git+http://{url} fix this issue without the need for users to have git installed? Not all companies have git available for their users (mine 👎 )

git://github.com/user/project.git#commit-ish
git+ssh://user@hostname:project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish

@filipesilva
Copy link
Contributor

I think it wouldn't help because the repo still needs to be cloned and whatnot. Having that dependency use a git url is a temporary solution, mind you...

We did it to avoid #1560, and are just waiting for https://github.com/webpack/compression-webpack-plugin to officially release 0.3.2 so we can remove the git url. @TheLarkInn is on it, but until then, I don't have a good workaround for you.

@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 6, 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

4 participants