i just installed laravel for the first time and got this error, i have reinstalled Composer many times but it doesn't work, maybe you guys can help me out
PHP version 8.2
i installed laravel global installer, but it shows symfony things error, i have reinstalled composer but it doesn't work
please see this url ( installation laravel)
first: install composer on OS (Linux , Windows or MAC)
If you have already installed Composer, you must be clear chache in composer:
php composer.phar clear-cache
or this command:
composer clear-cache
then Using installation via composer:
composer create-project laravel/laravel example-app
Related
My laravel installer just hang when i try to install laravel through composer.
I have installed the composer.Then i went to the command prompt and type the command
"composer create-project --prefer-dist laravel/laravel blog"
But it appeared and not doing anything further
Try clearing composer cache
composer clearcache
If still doesn't work
Try using laravel installer for it
https://laravel.com/docs/7.x/installation#installing-laravel
I tried install package watson/rememberable on localhost and it's installed successfully but when tried install it on shared hosting package killed and added package name to composer.json file, but not installed source code to vendor folder. I tried install package by clearing composer & Laravel caches but package not installed. How I can install it correctly?
To install the most recent version, run the following command:
composer require watson/rememberable
OR
Add to composer.json file:
"require": {
"watson/rememberable": "^3.1",
},
After, Run this command in the command prompt: composer update
Maybe you are in production mode. In the .env file change:
APP_ENV=local
Then try installing again.
5 project and after install Laravel and make php artisan serve it fails.
PHP Warning: require(/var/www/html/sidbrint/vendor/autoload.php):
failed to open stream: No such file or directory in
/var/www/html/sidbrint/artisan on line 18
PHP Fatal error: require():
Failed opening required '/var/www/html/sidbrint/vendor/autoload.php
(include_path='.:/usr/share/php') in /var/www/html/sidbrint/artisan on
line 18
I'm using an Ubuntu Server and I don't know hat to do.
When I install Laravel I use composer create-project --prefer-dist laravel/laravel blog "5.5.*"
If I don't put the version, it installs the 5.4 version, that works fine, but I need version 5.5 because is LTS.
Try using this it might solve your issue
composer update --no-scripts
composer update
is required as the vendor files are missing.
Seems that I needed some PHP packages, so I installed them:
sudo apt-get install php-dev php-mcrypt php-gd php-mbstring php-xml php-common php-zip apache2-dev libapache2-mod-php mysql-server composer npm
After this I executed composer create-project --prefer-dist laravel/laravel blog "5.5.*" and worked fine.
I have consulted this:
How to Install Laravel 5.5 on Ubuntu 16.04 with Apache
I am trying to install Magento multistore and I have installed composer but still, I am getting this error..
Vendor autoload is not found.
Please run 'composer install' under application root directory.
It sounds like you have installed the composer.exe but not actually run the command composer install in your terminal.
This will install all your dependencies.
You should probably read the documentation here.
I am installing Laravel 5.6 with the composer. This process is carried out in Windows 10's native command prompt. However when I type in composer create-project --prefer-dist laravel/laravel my_blog, composer doesn't do anything. It just stays still. Left it for 1.5 hours and the result is same.
Please help me fix it.
php composer create-project laravel/laravel my_blog --prefer-dist
File composer.phar must be in folder where you start command create-project OR add composer.phar to your PATH environment variable
For test (in terminal):
composer -V