Getting Error while "compser install" in laravel project - laravel-5.3

I am new to laravel and i am stuck into the error from last few days, I had cloned laravel project from gitlab and want to run this on localhost i have php7.2, laravel 5.3,ubuntu 18.10 but when i tried to run "composer install" on terminal inside project directory i.e /var/www/html/project_name/ it generates an error while installation.
priyanka#desktop:/var/www/html/project_name$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 89 installs, 0 updates, 0 removals
- Installing aspose/cloud-sdk-php (1.1.1): Downloading (0%) Failed to download aspose/cloud-sdk-php from dist: The "https://codeload.github.com/asposeforcloud/Aspose_Cloud_SDK_For_PHP/legacy.zip/abf381316d109316f995d6a9f2c46d83357dd5a8" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
Installing aspose/cloud-sdk-php (1.1.1): Cloning abf381316d from cache
abf381316d109316f995d6a9f2c46d83357dd5a8 is gone (history was rewritten?)
[RuntimeException]
Failed to execute git checkout 'abf381316d109316f995d6a9f2c46d83357dd5a8' -
&& git reset --hard 'abf381316d109316f995d6a9f2c46d83357dd5a8' --
fatal: reference is not a tree: abf381316d109316f995d6a9f2c46d83357dd5a8
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...
I've tried the following solutions which i found from different sites
composer update
composer update --no-scripts
composer install --no-scripts
sudo apt install zip unzip php7.2-zip
composer dump-autoload
enter image description here

Related

Why is lando often giving me "Install of vendor/package failed?

I'm on Mac and often getting a Install of vendor/package failed message. This can be just drupal/core or several drupal modules. lando composer install output includes some of these lines:
- Installing vardot/varbase (9.0.8): Extracting archive
22/452 [=>--------------------------] 4% Skipped installation of bin Resources/bin/var-dump-server for package symfony/var-dumper: name conflicts with an existing file
29/452 [=>--------------------------] 6% Skipped installation of bin scripts/release for package consolidation/self-update: name conflicts with an existing file
34/452 [==>-------------------------] 7% Skipped installation of bin bin/generate-defuse-key for package defuse/php-encryption: name conflicts with an existing file
67/452 [====>-----------------------] 14% Skipped installation of bin bin/generate-deps-for-config-factory for package laminas/laminas-servicemanager: name conflicts with an existing file
Skipped installation of bin bin/generate-factory-for-class for package laminas/laminas-servicemanager: name conflicts with an existing file
155/452 [=========>------------------] 34% Skipped installation of bin bin/simple-phpunit for package symfony/phpunit-bridge: name conflicts with an existing file
195/452 [============>---------------] 43% Skipped installation of bin bin/validate-json for package justinrainbow/json-schema: name conflicts with an existing file
205/452 [============>---------------] 45% Skipped installation of bin bin/jsonlint for package seld/jsonlint: name conflicts with an existing file
212/452 [=============>--------------] 46% Skipped installation of bin security-checker for package enlightn/security-checker: name conflicts with an existing file
225/452 [=============>--------------] 49% Skipped installation of bin bin/psysh for package psy/psysh: name conflicts with an existing file
229/452 [==============>-------------] 50% Skipped installation of bin robo for package consolidation/robo: name conflicts with an existing file
237/452 [==============>-------------] 52% Install of drupal/core failed
Install of drupal/commerce failed
Install of chi-teck/drupal-code-generator failed
Install of drush/drush failed
Install of drupal/devel failed
Install of ezyang/htmlpurifier failed
Install of drupal/entity_browser failed
Install of elasticsearch/elasticsearch failed
Install of ruflin/elastica failed
Install of nodespark/des-connector failed
[RuntimeException]
Could not delete /app/vendor/composer/aa54b6df/drupal-core-23b4d51/misc/icons:
Some suggestions I recieved on Lando Slack include checking for Docker free space
and checking for permissions (all files are 644 and all directories are 755), which didn't work. Also lando composer install -v gives me this:
Executing command (CWD): rm -rf '/app/vendor/composer/2ffefe25'
Install of drupal/core failed
Executing command (CWD): rm -rf '/app/vendor/composer/2ffefe25'
lando composer install and lando composer install -v outputs are from different times. So, my question is, how do I deal with this?
"process-timeout": 0 seems to have helped.

Git repo to Vercel delployment failing

Please help. Git repo to Vercel build failed.
I did this a few weeks ago, and now it's suddenly failing.
This is the error I'm getting:
[16:51:16.832] Cloning github.com/benjanknoetze/benjan-spot (Branch: master, Commit: 1a2ddf0)
[16:51:20.725] Cloning completed: 3.893s
[16:51:21.708] Looking up build cache...
[16:51:21.989] Build Cache not found
[16:51:22.220] Running "vercel build"
[16:51:22.720] Vercel CLI 28.2.0
[16:51:22.981] Your application is being built using `next build`. If you need to define a different build step, please create a `vercel-build` script in your `package.json` (e.g. `{ "scripts": { "vercel-build": "npm run prepare && next build" } }`).
[16:51:22.983] Installing dependencies...
[16:51:23.313] yarn install v1.22.17
[16:51:23.323] warning package.json: No license field
[16:51:23.329] info No lockfile found.
[16:51:23.332] warning No license field
[16:51:23.333] [1/4] Resolving packages...
[16:51:23.334] [2/4] Fetching packages...
[16:51:23.335] [3/4] Linking dependencies...
[16:51:23.339] [4/4] Building fresh packages...
[16:51:23.342] success Saved lockfile.
[16:51:23.344] Done in 0.04s.
[16:51:23.355] Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
[16:51:23.355] Error! No Next.js version could be detected in your project. Make sure `"next"` is installed in "dependencies" or "devDependencies"
My packgage.json:
Error message 1

Symfony Composer create-project stucks at Restricting packages listed in "symfony/symfony" to "5.0.*"

I am trying to create new project using following command but it stops at last line for hours. I have pasted the output from command.
I have tried updating composer also.
$ composer create-project symfony/website-skeleton my_project_name
The script began well
Creating a "symfony/website-skeleton" project at "./my_project_name"
Installing symfony/website-skeleton (v5.0.99)
- Installing symfony/website-skeleton (v5.0.99): Loading from cache
Created project in C:\Users\Captain\Desktop\my_project_name
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing symfony/flex (v1.6.2): Loading from cache
Symfony operations: 1 recipe (2d3facef6986e76f376f76f911c83b03)
- Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:master
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
But nothing happens after this line.

Problem compatibility symfony/symfony 3.3.* and symfony/dotenv 3.4

Problem compatibility
This mounted in docker
Problem execute
compose exec php ./install.sh
my file contains
bin/console cache:clear --env=prod
ERROR:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/dotenv v3.4.15 -> satisfiable by symfony/dotenv[v3.4.15].
- don't install symfony/symfony v3.3.18|don't install symfony/dotenv v3.4.15
- Installation request for symfony/symfony v3.3.18 -> satisfiable by symfony/symfony[v3.3.18].
Warning: require(/var/www/symfony/bin/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/symfony/bin/console on line 15
Call Stack:
0.0001 367080 1. {main}() /var/www/symfony/bin/console:0
Fatal error: require(): Failed opening required '/var/www/symfony/bin/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/symfony/bin/console on line 15
Call Stack:
0.0001 367080 1. {main}() /var/www/symfony/bin/console:0
Any ideas?
Try so: Update symfony and install after symfony/dotenv

Both npm and yarn have created lockfiles

I'm trying a first deploy for a dokku application.
I'm getting
Both npm and yarn have created lockfiles for this application,
but only one can be used to install dependencies. Installing
dependencies using the wrong package manager can result in missing
packages or subtle bugs in production.
- To use npm to install your application's dependencies please delete
the yarn.lock file.
$ git rm yarn.lock
- To use yarn to install your application's dependences please delete
the package-lock.json file.
$ git rm package-lock.json
I had initially created by project with yarn, but there was also a package-lock.json file. Perhaps I used npm one time. I don't remember.
I followed the instructions and git rm package-lock.json and tried again.
Same error
I then tried removing node_modules and reinstalling with yarn
Same error
So, I did git rm yarn.lock, removed node_modules and installed with npm install.
Same error
I then tried to
repo:purge-cache <app>
repo:gc <app>
and tried again. You guessed it
Same error
Any suggestions? I'm under pressure to deploy something and I'm stuck here.
Did you actually commit the changes removing the files? This is an error caused by the contents of your repository, not by Dokku.

Resources