Does anyone know why this keeps happening at "composer install" ?
and how to fix this ?
C:\Users\1337\Desktop\wafasalaf>composer install
Gathering patches from patch file.
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 152 installs, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
- Installing drupal/core (8.9.16): Loading from cache
- Applying patches for drupal/core
modules/patches/block-remove-logger-warning.patch (Remove not found blocks warning.)
Could not apply patch! Skipping. The error was: Cannot apply patch modules/patches/block-remove-logger-warning.patch
[Exception]
Cannot apply patch Remove not found blocks warning. (modules/patches/block-remove-logger-warning.patch)!
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
This is resolved, I had a problem on windows where Patch was not identified.
All I had to do is put the path link of the patch.exe in my system environments (if you have git for windows it's already installed & you'll find it in "C:\Program Files\Git\usr\bin").
Related
kage operations: 9 installs, 0 updates, 0 removals
Installing dasprid/enum (1.0.3): Extracting archive
Install of dasprid/enum failed
Installing bacon/bacon-qr-code (2.0.3): Extracting archive
Install of bacon/bacon-qr-code failed
Installing jaybizzle/crawler-detect (v1.2.103): Extracting archive
Install of jaybizzle/crawler-detect failed
Installing paragonie/constant_time_encoding (v2.4.0): Extracting archive
Install of paragonie/constant_time_encoding failed
Installing pragmarx/google2fa (8.0.0): Extracting archive
Install of pragmarx/google2fa failed
Installing laravel/fortify (v1.7.2): Extracting archive
Install of laravel/fortify failed
Installing mobiledetect/mobiledetectlib (2.8.34): Extracting archive
Install of mobiledetect/mobiledetectlib failed
Installing jenssegers/agent (v2.6.4): Extracting archive
Install of jenssegers/agent failed
Installing laravel/jetstream (v1.6.4): Extracting archive
Install of laravel/jetstream failed
0 [>---------------------------]
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
[UnexpectedValueException]
'F:\xampp\htdocs\example-jetstream/vendor/composer/tmp-9693892fd8e6eedc22c7fc7b94f0876e' is not a zip archive.
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []...
When I try to run composer update | composer install | composer require, I got this error on the Production server:
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may
be getting outdated dependencies. Run update to update them.
Package operations: 19 installs, 55 updates, 0 removals
In Filesystem.php line 182:
/var/www/html/vendor/kylekatarnls/update-helper does not exist and could not be created.
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] [--] [<packages>]...
Kindly help me, I am new in Laravel framework
When I run my laravel project, it display error
[Class 'Oureastudios\Laravel\BraintreeServiceProvider' not found].
I also try and load through composer but composer not download and give error.
composer require oureastudios/laravel5-braintree:dev-master --prefer-dist
You are running Composer with SSL/TLS protection disabled.
./composer.json has been updated Loading composer repositories with
package information Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing oureastudios/laravel5-braintree (dev-master 16ebcc6): Downloading (failed) Failed to download
oureastudios/laravel5-braintree from dist: The
"https://api.github.com/repos/oureastudios/laravel5-braintree/zipball/16ebcc610d9d0efef8a4ec28c19c8123586f10c2"
file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing oureastudios/laravel5-braintree (dev-master 16ebcc6): Cloning 16ebcc610d
Installation failed, reverting ./composer.json to its original
content.
[RuntimeException] Failed to clone
https://github.com/oureastudios/laravel5-braintree.git, git was not
found, check that it is install ed and in your PATH env.
'git' is not recognized as an internal or external command,
operable program or batch file.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress]
[--no-suggest] [--no-update] [--no-scripts] [--update-no-dev]
[--update-with-dependencies] [--update-with-all-dependencies]
[--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest]
[--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader] [--] []...
Thanks in advance.
that repository doesnt exist anymore.
try this one instead
https://github.com/odannyc/laravel5-braintree
composer require odannyc/laravel5-braintree:dev-master --prefer-dist
I have created a new repository on GitHub. I have used GitHub Desktop to commit all files. All is done. But I can't create a new project with Composer.
Here is my repository:
https://github.com/xttrust/CodeIgniter-HMVC-EXTRA
I have tried to create a new project like this:
composer create-project xttrust/CodeIgniter-HMVC-EXTRA
I get this error in GitBash:
[InvalidArgumentException]
Could not find package xttrust/codeigniter-hmvc-extra with stability stable.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
As Chris mentioned in a comment:
Have you submitted it to Packagist?
I had to merge it with Packagist, and it then worked.
No issue as the error is correct. Try searching Packagist. You will need to submit your github repo https://github.com/xttrust/CodeIgniter-HMVC-EXTRA
I am trying to implement language translation in my app using the following plugin vue-i18n
I am following this documentation
https://github.com/martinlindhe/laravel-vue-i18n-generator
When I run the following code
composer require martinlindhe/laravel-vue-i18n-generator
in root#d722309335cd:/var/www#
I get the following error
root#d722309335cd:/var/www# composer require martinlindhe/laravel-vue-i18n-generator
Do not run Composer as root/super user! See https://getcomposer.org/root for details
---Using version ^0.1.30 for martinlindhe/laravel-vue-i18n-generator
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
[UnexpectedValueException]
/var/www/vendor/composer does not exist and could not be created.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
What am I missing ?