sudo -E bash -apt install -y nodejs
Then, upload the files from this .zip to your pterodactyl location (most often /var/www/pterodactyl) with Overwrite option.
enter theese commands:
composer install --no-dev --optimize-autoloader
php artisan view:clear
php artisan config:clear
php artisan migrate --seed --force
And then install yarn:
npm i -g yarn
Install dependencies using this command:
yarn
and, build frontend using yarn run build: production (ignore the space between : and P, had no to this because it changes to emoji without a space.