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 install, I 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\" \"$@\"
Please login or Register to submit your answer
Hello,
can you try running composer with another user than root ?
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” “$@”
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