I am Trying to install sample data on xampp server using below command
php bin/magento sampledata:deploy
And i am getting error like this
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 40 bytes) in C:\xampp\htdocs\magento v2.0\vendor\composer\composer\src\Composer\ Json\Json File.php on line 259
can any one help me?
Best Answer
There are 2 solution for that:
Option 1 - Permanent Solution
change php.ini to increase
memory_limit
value on global levelOr You can also change in .htaccess file.
Option 2 - Temporary Solution
quick solution add memory size in the command :
change 768M to what you want