I've tried to install this package:
https://github.com/TYPO3/Fluid.Lint
as a dev requirement via: ddev composer require typo3fluid/fluid-lint --dev
I am getting this error:
./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 namelesscoder/fluid (1.1.0): Downloading (failed) Failed to download namelesscoder/fluid from dist: The "https://api.github.com/repos/NamelessCoder/TYPO3.Fluid/zipball/0b9a6b4d5d5096a470238fbccfb52beb257c7a71" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
Installing namelesscoder/fluid (1.1.0): Cloning 0b9a6b4d5d
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Failed to execute git clone --no-checkout 'https://:#github.com/NamelessCoder/TYPO3.Fluid.git.git' '/var/www/html/vendor/namelesscoder/fluid' && cd '/var/www/html/vendor/namelesscoder/fluid' && git remote add composer 'https://:#github.com/NamelessCoder/TYPO3.Fluid.git.git' && git fetch compose
r && git remote set-url origin 'https://github.com/NamelessCoder/TYPO3.Fluid.git.git' && git remote set-url composer 'https://github.com/NamelessCoder/TYPO3.Fluid.git.git'
Cloning into '/var/www/html/vendor/namelesscoder/fluid'...
remote: Repository not found.
fatal:***#github.com/NamelessCoder/TYPO3.Fluid.git.git/' not found
How can I fix this????????
this is not an issue on your side. The repository link seems to have an incorrect second .git appended: https://:#github.com/NamelessCoder/TYPO3.Fluid.git.git.
Though this repository is not maintained since 5 years, this is possibly not up-to-date and working for current TYPO3 versions.
More see here: https://github.com/TYPO3/Fluid.Lint/issues/8
There was never a new version released which uses the new package (see https://github.com/TYPO3/Fluid.Lint/commit/3c6e8fcefad1648c5c31dfdeebada99c03c7a0d7) so you have to require the dev-master instead:
ddev composer require typo3fluid/fluid-lint:dev-master --dev
Related
I'm trying to install the latest version of Laravel 8 on the latest version of Homestead. When I run composer install or composer update, installation of symfony/var-dumper always fails:
Installing symfony/var-dumper (v5.2.6): Extracting archive
Install of symfony/var-dumper failed
[ErrorException]
file_get_contents(/home/vagrant/code/vendor/symfony/var-dumper/Resources/bin/var-dump-server):
Failed to open stream: No such file or directory
Despite the error exception, the file /vendor/symfony/var-dumper/Resources/bin/var-dump-server does exist.
Things I've tried:
Deleting the lock file and re-running composer update
Manually specifying specific versions of var-dumper, e.g. composer require symfony/var-dumper:5.2.0
I always get the same errors.
Remove /vendor folder, then run:
composer update -v
This turned out to be a compatibility issue with Composer 2.x. I downgraded to the 1.x channel using composer self-update --1, then ran composer install again, and the installation succeeded.
Composer version 2.2.4 2022-01-08 12:30:42
and
symfony/var-dumper v5.4.3
is working just fine
I am using laravel- 7. Everytime I try to install any package in my cpanel ,the process get killed.
composer require milon/barcode
Using version ^8.0 for milon/barcode
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
after that I tried installing the package in my local machine then replace my server composer.lock file with the local's composer.lock file Then go to the terminal and run composer update.
It worked few days.
But now I am facing the issue again. Now I can't even update my composer also.
When I run composer update command.
The process get killed.
[....#host public_html]$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
I have 2 different Windows 2016 Servers running Drupal 8 and Drush 9 is installed on both but I have a Drush verison mismatch that I'm trying to fix.
I have this global composer.json file on both servers:
{
"require": {
"drush/drush": "9.*"
}
}
On my Test server, drush --version shows version 9.5.2.
On my Live server, drush --version shows version 9.7.0.
If I run composer global update drush/drush on my Test server, it doesn't update Drush and returns, "nothing to install or update".
I tried this:
composer global require drush/drush:9.7.0
and got this error:
Changed current directory to C:/Users/username/AppData/Roaming/Composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: consolidation/site-alias[3.0.0, 1.1.11].
- Can only install one of: consolidation/site-alias[3.0.0, 1.1.11].
- Can only install one of: consolidation/site-alias[3.0.0, 1.1.11].
- drush/drush 9.7.0 requires consolidation/site-alias ^3.0.0#stable -> satisfiable by consolidation/site-alias[3.0.0].
- Installation request for drush/drush 9.7.0 -> satisfiable by drush/drush[9.7.0].
- Installation request for consolidation/site-alias (locked at 1.1.11) -> satisfiable by consolidation/site-alias[1.1.11].
Installation failed, reverting ./composer.json to its original content.
Comparing the line, "name": "consolidation/site-alias", in composer.lock in both environments, I see that Test has 1.1.11 and Live has 3.0.0.
I installed drupal/recommended-project and thought I followed the same steps on both so I'm not sure how they got out of sync. Any ideas?
What is the recommended fix?
I ran composer require drush/drush and now both are on version 10.2.x.
For Install OroCRM in windows i have followed -> https://stackoverflow.com/a/40929643/8416476 after successful the command git clone -b 1.9.0 https://github.com/orocrm/platform-application.git orocrm then i try to run composer install --prefer-dist --no-dev Here i am getting error.
Installing composer/composer (1.0.0-p1): Downloading (failed) Failed to download composer/composer from dist: The
"https://api.github.com/repos/orocrm/composer/zipball/833ce984264204e7d6576ab082660105c7d8f04c"
file could not be downloaded (HTTP/1.1 404 Not Found)
How can i solve the issue.
Note : OroCRM in Windows
Install composer globally using https://getcomposer.org/Composer-Setup.exe
Then just run composer install --prefer-dist --no-dev from within application folder. This error is very odd and why are you trying to download 1.9.0 version? It is copy paste error or you specifically need this one?
Try Linux platform with Xampp for better convenient. refer https://oroinc.com/orocrm/doc/current/system-requirements#system-requirements
I installed composer globally on my Debian server
~$ which composer
/usr/local/bin/composer
It works, gets updated and I used it for three different (Symfony) sites.
~$ composer self-update
You are already using composer version 1.3.3 (stable channel).
However, when I am in the directory of one of the sites, and try to update all dependencies, I get an error (before, this just worked and updated the vendors etc).
~/website-path$ ls composer.*
composer.json composer.lock
~/website-path$ composer update
[ErrorException]
Illegal string offset 'version'
~/website-path$ composer
[ErrorException]
Illegal string offset 'version'
When I rename composer.json, this Error disappears (but the lack of .json file makes this quite useless)
What went wrong here and how can I fix this?
The problem magically went away overnight by upgrading to 1.4.0
~$ composer -V
Composer version 1.4.0 2017-03-08 17:51:24
~/website-path$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
[...]