Skip to content
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

'git' is not recognized as an internal or external command #786

Closed
roxwize opened this issue Aug 19, 2017 · 11 comments
Closed

'git' is not recognized as an internal or external command #786

roxwize opened this issue Aug 19, 2017 · 11 comments

Comments

@roxwize
Copy link

roxwize commented Aug 19, 2017

  • Node.js Version: 8.4.0
  • OS: windows
  • Scope (install, code, runtime, meta, other?):install

one of the most annoying errors:

C:\Users\Truth Media Justin\my-first-package>git clone https://github.com/LFeh/piano-keyboard.git 'git' is not recognized as an internal or external command, operable program or batch file.

see, im having a problem with "git clone" and i have a package ready and all, but how do i make it actually work?

@gibfahn
Copy link
Member

gibfahn commented Aug 19, 2017

Have you downloaded and installed git? https://git-scm.com/download/win

You need to make sure git.exe is on the path, check with:

where git

@roxwize
Copy link
Author

roxwize commented Aug 19, 2017

Have you downloaded git? https://git-scm.com/download/win

oh thanks

@tniessen
Copy link
Member

Closing as solved.

@tniessen tniessen changed the title "git" 'git' is not recognized as an internal or external command Aug 20, 2017
@rohithreddybc
Copy link

rohithreddybc commented Feb 10, 2018

I downloaded and installed the git but still iam having same problem.
how can I fix that

@tniessen
Copy link
Member

@rohithreddybc You most likely did not add Git to your PATH environment variable. If you installed Git via the link above with default options, you should be able to use git from the command line. If it does not work, try running the command from within the Git Bash.

@rohithreddybc
Copy link

@tniessen As I am beginer I don't know how to run the command from within the Git Bash.can u help me?

@tniessen
Copy link
Member

@rohithreddybc What exactly are you trying to do? Is this related to node in any way?

  1. Open Git Bash which should have been installed along with Git if you downloaded the correct installer.
  2. Type the command you want to run, it should start with git.
  3. Press enter.

@rohithreddybc
Copy link

@tniessen thank-you soo much ....you solved my problem.

@rohithreddybc
Copy link

@tniessen I can't abel to install browser-sync . How can I install browser-sync in git bash by using this command ["npm install -g browser-sync" ].

@tniessen
Copy link
Member

I wouldn't use git bash for anything except git, if you properly installed node, you should be able to run that command from a normal windows command prompt (cmd.exe).

@SomeoneWeird
Copy link
Member

Please open a new issue if you're still having problems.

@nodejs nodejs locked as resolved and limited conversation to collaborators Feb 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants