Charitha's avatar

Composer command not found

Hi, im unable to install Yajra data table package throguh composer , when i try the command

composer require yajra/laravel-datatables-oracle

its says 
`````````````````````
bash: composer: command not found
`````````````````````````````````````
my OS is  windows 10
0 likes
8 replies
munazzil's avatar

Have you tried composer updateor else try composer dump-autoload

Charitha's avatar

will it affect my currently running programs in laravel ? is this because my composer is not global?

DevForAll's avatar

Hi Are you sure that Composer is installed ? If you type

composer

what do you have in your terminal ?

Charitha's avatar

@DEVFORALL - Thanks , is it okay to install the composer now? will it change all my settings ?

Snapey's avatar

presumably you already have composer to install Laravel ?

You just need to find where youput it

DevForAll's avatar
Level 5

The settings for your application is in a file, composer.json, in your application directory.

So, i think it's safe to install now. But as always, make backup, i dont know what is your system configuration.

The second method with the composer.phar (https://getcomposer.org/doc/00-intro.md#manual-installation) is safe because it will not modify anything.

Please or to participate in this conversation.