ORO-CRM Composer Install - Failed to download composer/composer - windows

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

Related

Composer always fails to install symfony/var-dumper

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

PHP: dom is missing from your system

Can you please help me, I am facing a trouble installing Laravel on my Ubuntu 18.04. When I run the commend composer create-project --prefer-dist laravel/laravel my_app, I get this error:
You need to install php-xml extension for dom. If you are using a Debian based system, you can install via the command below.
apt install php-xml

How to install PhpUnit with XAMPP using composer?

Im trying to install PHPUnit on Xampp using Composer.I have followed the steps from the following link
http://woeiyu.com/software/php/installing-phpunit/
but im got the error "proc_open(NUL): failed to open stream: No such file or directory" while executing composer update
I suggest you skip XAMPP and use Git. Much easier. But you actually don't need those two to install it.
Put this in your composer.json
{
"require-dev": {
"phpunit/phpunit": "5.0.*"
}
}
Run it like this in Git or XAMPP composer update after that composer install
and that's it. You successfully downloaded and installed PHPUnit. It's located in your root vendor/
You can install phpunit with composer globally using
$ composer global require phpunit/phpunit
For reference see https://getcomposer.org/doc/03-cli.md#global.

Unable to install ApiGen using CLI

I am trying to install Apigen on windows.
I am following instructions mentioned here.
But I am getting following error in cmd:
ApiGen PEAR is no more supported.
Download PHAR from apigen.org or install via composer require apigen/apigen.

Swiftmailer Error Composer Install

i am installing composer dependencies by 'composer install'.
it download bunch of packages but after swiftmailer it gives me error
[UnexpectedValueException]
'C:\Users\DELL\Downloads\laravel-4\vendor/swiftmailer/swiftmailer/72e34d......54c82f.1' is not a zip archive.
what does it mean?
For me this problem happened due to the order composer was installing the files.
The work around that worked for me was to go into \vendor\composer\autoload_real.php and comment out the following line
require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';
and then run composer again
Running composer install with the --prefer-source option, fixed this problem for me.

Resources