How do I install the sample data after setting up Magento2?

Install sample data modules: Using composer: Add dependencies to the composer.json: composer require magento/module-bundle-sample-data magento/module-widget-sample-data magento/module-theme-sample-data magento/module-catalog-sample-data magento/module-customer-sample-data magento/module-cms-sample-data magento/module-catalog-rule-sample-data magento/module-sales-rule-sample-data magento/module-review-sample-data magento/module-tax-sample-data magento/module-sales-sample-data magento/module-grouped-product-sample-data magento/module-downloadable-sample-data magento/module-msrp-sample-data magento/module-configurable-sample-data magento/module-product-links-sample-data magento/module-wishlist-sample-data magento/module-swatches-sample-data magento/sample-data-media magento/module-offline-shipping-sample-data –no-update Run: composer update Using magento: Deploy sample data: bin/magento sampledata:deploy Enable sample data modules (it’s important!): bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData … Read more

Uncaught SyntaxError: Unexpected token u in JSON at position 0

Try this in the console: JSON.parse(undefined) Here is what you will get: Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at <anonymous>:1:6 In other words, your app is attempting to parse undefined, which is not valid JSON. There are two common causes for this. The first is that you may … Read more