Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Getting Started with Laravel Installing Laravel Homestead

Abhishek Bhardwaj
Abhishek Bhardwaj
3,316 Points

Showing me an error : 'git' is not recornize as an internal and external command, operable program and batch file.

Showing me an error : 'git' is not recornize as an internal and external command, operable program and batch file. i'm installing laravel on window OS.

Two possibilities:

1.) git is truly not there (not installed)

2.) git can't be found - most likely a pathing error

To know which of these two is more likely I would have to know which steps you performed proceeding your attempted use of git as well as how the call to git was made..

I had the same problem for me it was that I didn't have GIT installed once install and using the git cmd I was able to move onto the next steps.

2 Answers

Are you running git from the command prompt in Windows? When you installed it, I think you have to enable that option to be able to use it, just reinstall it using this site http://git-scm.com/download and check the option.

If you did those, try rebooting. Windows sometimes has issues with pathing so a reboot might get everything right again.

Abhishek Bhardwaj
Abhishek Bhardwaj
3,316 Points

it not work but with the help of stack overflow i found a sloution: my error was "Laravel development server started on http://localhost:8000 [Wed Mar 19 00:29:46 2014] Failed to listen on localhost:8000 <reason: An attempt was made to access a socket in a way forbidden by its access permissions.>"

solution:(use the belo command to change the port

php artisan serve --port="8888"

Abhishek Bhardwaj
Abhishek Bhardwaj
3,316 Points

It still showing me the same error. can't tree house uplaod a video " installation in window".

Another option would be to follow this site:

https://git-for-windows.github.io/

Instead of using command prompt you can use their Shell which gives you a linux like command line. This is what I personally do because command prompt can be a pain to use.