Error when compiling standard theme

Hello everybody!

I finnally managed to get it work and I’ll post the solution here:

After a clean project git setup(from github) or from the installation zip file available on the site(but using the .gitignore file from github) following steps must be done:

1. Install administration dependencies:

npm clean-install --prefix vendor/shopware/administration/Resources

npm clean-install --prefix vendor/shopware/administration/Resources lerna – bootstrap

  1. Build administration:

php bin/console bundle:dump
PROJECT_ROOT=__ABSOLUTE_PATH_TO_PROJECT_ROOT__ npm run --prefix vendor/shopware/administration/Resources/administration/ build
php bin/console assets:install

  1. Install storefront dependencies:

npm --prefix vendor/shopware/storefront/Resources/ clean-install
node vendor/shopware/storefront/Resources/copy-to-vendor.js

  1. Build storefront:

php bin/console bundle:dump
PROJECT_ROOT=__ABSOLUTE_PATH_TO_PROJECT_ROOT__/ npm --prefix vendor/shopware/storefront/Resources/ run production
php bin/console theme:compile
php bin/console assets:install

  1. Change theme:

php bin/console theme:change Storefront --all

Running ‚PROJECT_ROOT=__ABSOLUTE_PATH_TO_PROJECT_ROOT__/ npm --prefix vendor/shopware/storefront/Resources/ run‘ you’ll see options like ‚watch‘

If ‚clean-install‘ doesn’t work try to use ‚install‘ instead.

 

Best regards,

Sorin

 

1 „Gefällt mir“