composer error
I am getting error while trying to install Composer.
The error is
Remove from the System path: c:\windows\system32.
Please help me in finding the solution.
same here but, trying to uninstall/reinstall composer but after uninstallation and clicking the composer installer i had the same prob..
I got the installer FIXED after a computer restart so that the uninstall will be complete and "system variables" will be updated.
I do not know what the problem is, but I ran into the same problem. On a hunch, I tried reinstalling composer again. When asked to choose the PhP engine, I chose PhP 5.6, which I understand is still available on all wampp / xampp installations.
That seemed to do the trick. Why 5.6 is working but 7.3 is not working I have no idea. Furthermore, I feel there is a better solution to this. Unfortunately I don't know it, but at least you can get working if that is the right solution for you.
Open CMD as Administrator type: where composer
It will show where your global composer file is.
"Remove from the System path: c:\windows\system32." If this the error you will find a "composer.bat" file in that directory. Delete that file and run installation again. Hope this fix your problem. Cheers :)
i have the same problem
i resolve by
delete php.exe in c:\windows\system32
Related
everyone, I've been working on my project, and then I needed to install extra package on laravel, so when I tried so, I got an error, and then I discovered that files in vendor\bin directory are empty, I don't really know why so, but does anybody have any idea how to recover it, or what I have to do?
screen
Delete the composer package lock file, and then a simple
composer install would work.
i am trying to install composer on my xampp server, but i am getting following error.
Any leads would be helpful. thank you
There will be many reasons behind this.
1.) Be sure Your xampp is working fine.
2.) You install composer without selecting php.exe file (Default it will be available in C:\xampp\php\php.exe).
If all working fine please look at this link. May be it will help you:
https://abuango.net/2014/08/16/how-to-install-composer-on-windows-with-xampp/
I'm running a laravel app on Azure. Things are moving in the right direction, composer install didn't use to work at all. Now however, the "php artisan optimize" command times out:
However, running "php artisan optimize" separately is no problem at all:
What could be the cause of this?
Edit:
Deleting the symfony-folder does not help, it is not present when I run the "Composer install"-command:
Increasing the timeout-limit does not help either, I increased it in both azure and in the composer.json file:
This still gives me a timeout, after installing the symfony-components again:
...
As I deployed a new clean Laravel 5 application to Azure Web apps and tried to reproduce your issue, however, it worked fine on my side either I run the command php artisan optimize or composer install or composer update.
I installed the composer at the Site extensions at the KUDU console site of the application on Azure Web apps, the url should be like: https://<your_site_name>.scm.azurewebsites.net/SiteExtensions/#gallery
There are several solutions of other developers who occur the same issue with you, you can try these solutions:
try to increase the max_execution_time or set the value to 0, refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-configure/#how-to-change-the-built-in-php-configurations to change the PHP build-in configurations on Azure Web Apps. And you can change the process-timeout in Composer.json file :
"config" : {
"process-timeout": 0
}
deleted the entire Symfony folder and try again. As the comments at PHP Artisan Optimize - Timed out? #1050, it seems the symfony dependencies raise the issue.
#Rkey,
According to my experience, I think the issue is more related to the symphony version/configuration. I suggest you can remove/edit the symphony configuration from the composer.lock file (NOTE: please backup this file if you cannot success, you also can recovery your environment). And then you can run this "composer install".
After installed component, You can see an alert window which shows that
your session is timeout, please refresh your browser.
You can see this information because the server is in initialization process.
Any concerns, please feel free to let me know.
I'm also having this problem. Will upgrading the plan help?
According to this upgrading to S3 helps... I haven't tried it though... Let me know if it really works.
#Rkey & #cabs, per my understanding on this question, I wanna point out that Composer is not fully supported on Azure. The issue is that it’s using Taskkill command which is blocked on Azure. We are aware of this and please feel free to submit an idea or suggestion based on the experience with Azure at https://feedback.azure.com/forums/34192--general-feedback.
I have been stuck in this problem as well for a week.
Have tried all solutions on forum but no success.
This morning finally solved after reinstall XAMPP. It was problem on my previous PHP version 5.6.19. While using new XAMPP with PHP version 5.6.28, it worked fine.
running mac Yosemite 10.10.5
A couple of days ago I installed Laravel for the first time. That part went pretty smooth! Once it was time to install composer I was able to find some help here! This command on bash Profile made it work for me: PATH="$PATH:~/.composer/vendor/bin"
Fast-Forward to today when I am attempting to install XAMPP and Bitnami.. The Apache server and all that. So I think I am ready to roll and as I tried to create a project I was told that I did not have the mcrypt file? So down THAT rabbit hole I went. That was a tough one but I managed to get it to work.
Now forgive me but I don't remember what happened next that led me to re-install composer and that turned out to be an other huge issue as it wouldn't allow me to do so.. I would get this message
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The detect_unicode setting must be disabled.
Add the following to the end of your `php.ini`:
detect_unicode = Off
After doing some research I was able to download Composer again by running this command..
curl -s getcomposer.org/installer | php -d detect_unicode=Off
I thought I was on my way.. 2 hours have gone by! Boy was I wrong! :(
What once used to work.. composer commands in my terminal.. all of the sudden are not recognized..
Commands like this worked before.. composer create-project laravel/laravel=5.0 TestApp
but now it returns this.. ??+?abelista /Applications/XAMPP/htdocs Question Marks along my machines name..
Nothing with composer runs.. I have tried changing my PATH in my Bash Profile too..
PATH="$PATH:$HOME/.composer/vendor/bin"
PATH="~/.composer/vendor/bin/laravel:$PATH"
and remember this one below used to work..
PATH="$PATH:~/.composer/vendor/bin"
From my understanding.. If I can recall correctly.. I think the problem began when I ran homebrew to install mcrypt.. I could be wrong. Does anyone here have the slightest idea what could be my issue?
BTW, according to my command line.. composer is installed..
All settings correct for using Composer
Downloading...
Composer successfully installed to: /Applications/XAMPP/xamppfiles/htdocs/composer.phar
Use it: php composer.phar
Thanks for reading and trying to help me out.
I think you've messed up with PHP installing XAMPP or other tools...
Nothing to do with composer. If you want something to work, try using Homestead, everything is setup for you in there.
In general, I would recommend you to not install stuff directly on your development machine. Try using virtual machines instead, that way you can do all the mess you want and reset everything easily.
i know there are many questions asked about this before. but the issue is none of them is helping me in anyway?
There is no step by step configuration help..
The most colosest good help i think i could find is here in stackoverflow answer.
http://stackoverflow.com/questions/12814263/phpunit-via-composer-and-phpstorm
The answer provided by #Adam Lynch should be explained more clearly, As not everyone is expert in this debugging.
I recently installed xdebug for php today for the first time on windows 8.
Now as i am using phpstorm so went to setup the xdebug settings for phpstorm and couldn't make it to work, so i start searching net and it seemed ppl liked composer more then pear.
So i downloaded and installed composer from here.
https://getcomposer.org/doc/00-intro.md
Seems to me composer installed successfully, but now still there is issue of setting composer with phpstorm.
THERE IS NO VENDOR DIRECTORY
Gosh... i want to tell this to the person who answered in that stackoverflow. xD. i know its crazy. but i am banging banging my head over walls, no matter how much searches i do there is no vendor directory came with composer installation.???
Now how to setup the autoload.php from vendor directory if there is no vendor directory.
There is only composer.phar file.
what to put in below picture?
its been hours, i am stucked and cant find my way out of it :(
EDIT:
Thanks to #LazyOne, i now know that vendor directory will come if i define any dependency.
Now as i moved forward to install Dependency i got this error.
This is how i tried to install it.