DB009
DB009

Reputation: 23

Error in Composer install using Wamp and Windows 7

I tried to update my composer to install new packages and got this

the APPDATA or COMPOSER_HOME environment variable must be set up for composer to run correctly

cant seem to find anything on it in google or the IRC

Upvotes: 0

Views: 1594

Answers (3)

Jignesh Rawal
Jignesh Rawal

Reputation: 549

I feel this is missing for few of the windows user.

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)

https://github.com/composer/composer/issues/2033

Upvotes: 1

Leo Khoa
Leo Khoa

Reputation: 957

You can use Laragon, a modern isolated WAMP to avoid seeing errors like that. Laragon bundles composer, Memcached, Redis, it has many useful features over WAMP and fully supports Laravel. To run composer, just open Laragon's Shell and type composer

Upvotes: 3

Richard Christensen
Richard Christensen

Reputation: 2166

In your cmd prompt.

SET COMPOSER_HOME="C:\path\to\composer"
composer self-update

This article shows you how to set an environment variable to always be available.

Upvotes: 2

Related Questions