Laravel 8 update error

Laravel 8 update error

Laraship QuestionsCategory: TechnicalLaravel 8 update error
Sebastian Wong asked 4 weeks ago
I am following the documentation at the link below:
https://www.laraship.com/docs/laraship/installation-instructions/installation/
The issue I am facing is that when I run composer update I have also used composer installI am getting the following warning:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Though, it starts updating the dependencies but it does not show in the terminal that anything is actually happening. At the end, I get the following message.
/usr/local/bin/composer: line 8: 118700 Killed \”$COMPOSER_BIN\” \”[email protected]\”
laraship
Staff replied 4 weeks ago

Hello,
can you try running composer with another user than root ?

Sebastian Wong
replied 4 weeks ago

I created another user “atif” (having sudo group).
Switched to user “atif”.
Tried “composer update”. This time got no warning but the output was same: line8: 123153 Killed “$COMPOSER_BIN” “[email protected]

However, I ran the command “php artisan key:generate” according to the documentation but got the following error:

PHP Warning: require(/var/www/vhosts/vibrant-hypatia.104-236-107-140.plesk.page/httpdocs/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/vhosts/vibrant-hypatia.104-236-107-140.plesk.page/httpdocs/artisan on line 18
PHP Fatal error: require(): Failed opening required ‘/var/www/vhosts/vibrant-hypatia.104-236-107-140.plesk.page/httpdocs/vendor/autoload.php’ (include_path=’.:/usr/share/php’) in /var/www/vhosts/vibrant-hypatia.104-236-107-140.plesk.page/httpdocs/artisan on line 18

LARASHIP MEGA SALE

ON ALL LARASHIP PLATFORMS
GO TO STORE
LIMITED TIME OFFER
close-link
MEGA SALE on all of LARASHIP platforms
SHOP NOW!
close-image