nitiphone2021 Posted December 3, 2021 Share Posted December 3, 2021 Dear All, I uploaded my Laravel Project to Server by remove "vendor" directory and then run command "composer install --no-dev" then I got error message Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? yes Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 - league/commonmark is locked to version 2.0.2 and an update of this package was not requested. - league/commonmark 2.0.2 requires php ^7.4 || ^8.0 -> your php version (7.3.33) does not satisfy that requirement. Problem 2 - league/config is locked to version v1.1.1 and an update of this package was not requested. - league/config v1.1.1 requires php ^7.4 || ^8.0 -> your php version (7.3.33) does not satisfy that requirement. Problem 3 - psr/container is locked to version 1.1.2 and an update of this package was not requested. - psr/container 1.1.2 requires php >=7.4.0 -> your php version (7.3.33) does not satisfy that requirement. Problem 4 - league/commonmark 2.0.2 requires php ^7.4 || ^8.0 -> your php version (7.3.33) does not satisfy that requirement. - laravel/framework v8.74.0 requires league/commonmark ^1.3|^2.0.2 -> satisfiable by league/commonmark[2.0.2]. - laravel/framework is locked to version v8.74.0 and an update of this package was not requested. Quote Link to comment https://forums.phpfreaks.com/topic/314266-deploy-laravel-project-to-server/ Share on other sites More sharing options...
kicken Posted December 3, 2021 Share Posted December 3, 2021 Your project contains libraries that require PHP 7.4 or newer but your server is running PHP 7.3. The system you used to develop the project must have a newer version of PHP, so when you ran composer there and generated the composer.lock file it did so assuming PHP 7.4 or newer was being used. You should update your server to a newer PHP version. For the future, you should also make sure your development system matches your production system as closely as possible. 1 Quote Link to comment https://forums.phpfreaks.com/topic/314266-deploy-laravel-project-to-server/#findComment-1592389 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.