when I run this command


then I got the below error

"PHP Fatal error: Class 'Locale' not found in /opt/lampp/htdocs/magento/magento2_1/vendor/magento/framework/Locale/Bundle/DataBundle.php".

can you please help me how to resolve the issue ?


2 Answers 2


This error occurs when you do not have php's intl extension.

For futher info. you can chk

  1. https://github.com/magento/magento2/issues/2316
  2. Run Grunt deploy task -> Fatal error: Class 'Locale' not found
  3. Error in Magento 2 when trying to deploy

The sollution I found was to run xampp's shell and there write the code. Otherwise, on command prompt ( Windows ) it would give me the same error.

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