2

Command I used :

php bin/magento indexer:reindexenter image description here

2 Answers 2

0

You have to setup php to your PATH environment variable.

Go to Control Panel > System>Advanced System Settings>Environment Variables

Click new

Variable name : path
Variable value : C:\xampp\php;

Then restart cmd, and try running again the Magento commands.

And it should work.

2
  • I followed your instructions, but the same error is repeated.
    – Sakthivel
    Commented May 8, 2019 at 15:15
  • do you have composer lock file in your Magento root folder? along with composer json
    – fmsthird
    Commented May 8, 2019 at 15:22
-1

I would just remove the php from the beginning of the command. Just do bin/magento indexer:reindex

1
  • I followed your instruction not working.
    – Sakthivel
    Commented May 8, 2019 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.