Alexandre Pereira
Alexandre Pereira

Reputation: 83

Terminal letters all white and unable to use la e l commands

I was trying to install laravel and composer and when i tried to change $PATH somehow letters turned white and being unable to use commands like cd or ls but somehow i put those working but still i cant use commands like la or l ,and i don't what other commands i can't use either, and most of all i can't still use command laravel new saying composer.phar is missing.

whereis composer.phar command output:

composer: /usr/bin/composer /usr/share/man/man1/composer.1.gz

laravel new pr1 command output:

Crafting application...
Could not open input file: composer.phar
Application ready! Build something amazing.

echo $PATH output

/home/alexandre/.config/composer/vendor/bin:/home/alexandre/.config/composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

type composer output

composer is /usr/bin/composer

which composer output

/usr/bin/composer

Upvotes: 1

Views: 38

Answers (1)

Brian Lee
Brian Lee

Reputation: 18197

You need to fix your $PATH variable. Run echo $PATH and check what system paths are output. You should see /usr/bin, /usr/local/bin, /bin, etc. etc.

Which OS are you using? You can trying running type composer or which composer to get the install path, but I would imagine it's not going to work with a broken env $PATH .

Upvotes: 1

Related Questions