Reputation: 13
I am trying to install laravel with composer, but it's asking me for a username and password. I tried my github credentials but without succes. I also have read the docs and still it's giving me errors.
Warning: require(C:\xampp\htdocs\site\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\site\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\site\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\site\bootstrap\autoload.php on line 17
When I try to install laravel with composer it's showing me this:
Could not fetch http://nodeload.github.com/laravel/laravel/zip/v4.0.0, enter you r GitHub credentials to access private repos The credentials will be swapped for an OAuth token stored in C:/Users/AppD ata/Roaming/Composer/config.json, your password will not be stored To revoke access to this token you can visit https://github.com/settings/applica tions Username:
And when I try to update it's showing me this:
C:\xampp\htdocs\site>php composer.phar update Could not open input file: composer.phar
Upvotes: 1
Views: 3846
Reputation: 1
You can try running the laravel built-in-server using the artisan
command...
Just run the following command on your terminal or command promt:
php artisan serve --port=portnumber
Make sure that you are in the project folder and pointing to the artisan
file.
Check out this video tutorial...how to install laravel using composer
Upvotes: 0
Reputation: 20590
I had openssl enabled both for CLI and APACHE but still had a similar problem where composer was asking for gitHub authentication (username, password). I solved it with this command from here:
composer config -g github-oauth.github.com <oauthtoken>
Where <oauthtoken>
should be completely replaced with your token created from github here.
It may also help to delete your composer.lock file and cache files (which you can find the directory location of your cache files using the command composer config --list
)
Upvotes: 0
Reputation: 2116
Those errors are because the composer install hasn't completed as those files are created at the end of the process. As for the actual issue, I think I had it once or twice but just kept trying and it worked. Are you only install laravel or are there other packages? Also make sure composer is up to date.
Upvotes: 0