New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error composer variable. #2033

Closed
mrluissan opened this Issue Jun 24, 2013 · 6 comments

Comments

Projects
None yet
4 participants
@mrluissan
Copy link

mrluissan commented Jun 24, 2013

When I try to run any commands on the console with Composer, come back to me an error:

[RuntimeException]
The APPDATA or COMPOSER_HOME environment variable must be set for composer to run correctly

I looked for if the error is by the enviroment variable that it must be set into the path, I found the variable into the path.

For install composer I used the Composer Installer for Windows, without errors.
I thought that the installation was successfully but it wasn't by this problem.

I have Windows 7, 32 bits.

I leave you a picture:
composererror

Sorry for my english, I know is terrible.
I'm Spanish.

Thank you for any solution you can give me.

@Seldaek

This comment has been minimized.

Copy link
Member

Seldaek commented Jun 25, 2013

Can you try to run this command in your terminal? Does it output anything?

echo %APPDATA%

If not then that's your problem, however I have no idea how it's even possible to run a windows terminal without the APPDATA environment variable defined, so not sure why you have issues there.

@mrluissan

This comment has been minimized.

Copy link
Author

mrluissan commented Jun 25, 2013

I executed this command

echo %APPDATA%

and the output said: "%APPDATA%" only this.
I look for the APPDATA variable into my environment variables and nothing.
Definitively I think is a problem of my computer and not of Composer

@Seldaek

This comment has been minimized.

Copy link
Member

Seldaek commented Jun 25, 2013

What you can do is define the APPDATA env var yourself, it should point to C:\Users\*YOUR USERNAME*\AppData\Roaming on vista/7 (and I guess win8)

@mrluissan

This comment has been minimized.

Copy link
Author

mrluissan commented Jun 25, 2013

Oh!
You are the best!
Thank you so much for your help!

Solution:
I set a new variable called: APPDATA
Value of the variable: C:\Users(user)\AppData\Roaming.

Then I've gone to the cmd and run this command:

composer install

inside the laravel 4 folder... and it works!
No more problems :)
Thank you so much!
I'm very greatful.

@mrluissan mrluissan closed this Jun 25, 2013

@blackcoco

This comment has been minimized.

Copy link

blackcoco commented Dec 23, 2013

I have same issue, thanks!!!

@stof

This comment has been minimized.

Copy link
Contributor

stof commented Dec 23, 2013

@blackcoco just define the needed environment variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment