I had a fresh install of Magento2 and was trying to install sample data by bin/magento sampledata:deploy but it gave back error In PluginManager.php(196) : eval()'d code line 188: chmod(): Operation not permitted . There is an error during sample data deployment. Composer file will be reverted .
Do somebody know what have gone wrong ?
That is probably a permission issue. Go to root
Then installed magento directory:
Run command:
Make sure to run indexing and clean the cache after that: