5

when I run this command

static-content:deploy

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 ?

Murtuza Zabuawala
  • 14,814
  • 9
  • 44
  • 75
Kartik Asodariya
  • 471
  • 1
  • 8
  • 23

2 Answers2

12

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
Arjun
  • 3,576
  • 23
  • 59
2

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.