Hey there, I was hoping for some words of wisdom here. When executing the task grunt exec:luma I get an error as such "Fatal error: Class 'Locale' not found in ...frontend/magento2/data/magento2/lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php on line 64".
Any ideas on why I would get this error? Is there a system dependency missing?
Also to note: I am currently on the latest version develop.
Possibly, when you ran the command Magento was not installed (composer, app, etc..).
Also intl extension is required for Magento 2.
Hey @Dell- Magento is definitely installed and running. As for the intl extension dependency, are we saying the the php and this extension is to be installed on my mac to run grunt from the project's environment. I am currently using mage2_vagrant as my vm.
I guess my question is that do I have to run nodejs/grunt from my vagrant box?
@angellromero,
Yes grunt exec task should be run on the environment with installed magento, as it relies on 'php bin/magento dev:source-theme:deploy PHP CLI command, collecting .less sources based on magento application config. So you need to run it from the vagrant machine.
Hello,
Is there any solution for the above issues. I am facing the same issues.
My current environment is :
Thanks in advance.
Hi,
I have the same issues in Mac OS when I run "grunt exec"
Fatal error: Class 'Locale' not found in /Applications/AMPPS/www/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64
Exited with code: 255.
I used AMPPS and I installed in intl extension.
And when I run "php bin/magento setup:static-content:deploy" to create static file.
- run ''grunt watch"
- I go to app/design/frontend/Magento/mytheme and change less file.
-> command line "grunt watch" don't work.- I go to pub/static change file
-> "grunt watch" worked.
Who have help me? Please.
Thanks
Hi,
Kindly install nodejs version older than 4.2.5.
Set environment variable PATH of php.exe.
Copy your php.ini from conf folder to bin/php7.0.0 folder
than run static content deploy command/
It should work.
Thanks
Can anyone confirm that raised problem is related to environment and solved already?
hi,
I Set environment variable PATH of php.exe.
and It worked now.
Thanks geetanshrsoni,
Hi Guys, How to solve this on amazon linux os ?
I have intl extension already !
intl extension is required for Magento 2.
i installed intl extension and everything was fine
Most helpful comment
Possibly, when you ran the command Magento was not installed (composer, app, etc..).
Also intl extension is required for Magento 2.