# Error when compiling standard theme

**URL:** https://forum.shopware.com/t/error-when-compiling-standard-theme/60676
**Category:** Themes & Design
**Created:** [26. Juli 2019 um 07:06 UTC](https://forum.shopware.com/t/error-when-compiling-standard-theme/60676 "2019-07-26T07:06:09Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![SorinSologics2019](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@SorinSologics2019](https://forum.shopware.com/u/SorinSologics2019)
#### Post date: [26. Juli 2019 um 13:33 UTC](https://forum.shopware.com/t/error-when-compiling-standard-theme/60676/5 "2019-07-26T13:33:12Z")

</div>

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.&nbsp;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\_\_&nbsp;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.

&nbsp;

Best regards,

Sorin

&nbsp;

---

_[View the full topic](https://forum.shopware.com/t/error-when-compiling-standard-theme/60676)._
