edo@158-EDIOSM-LT:~/platform$ composer run init:js
export PROJECT_ROOT="$PWD"; cd src/Administration/Resources/app/administration; export PATH="$PWD/node_modules/.bin/:$PATH"; "$PROJECT_ROOT"/bin/exec-with-env 'npm' 'clean-install' '--no-audit' '--prefer-offline'
PHP Warning: require(/home/edo/platform/bin/../vendor/autoload.php): Failed to open stream: No such file or directory in /home/edo/platform/bin/exec-with-env on line 16
PHP Fatal error: Uncaught Error: Failed opening required '/home/edo/platform/bin/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/edo/platform/bin/exec-with-env:16
Stack trace:
#0 {main}
thrown in /home/edo/platform/bin/exec-with-env on line 16
Script export PROJECT_ROOT="$PWD"; cd src/Administration/Resources/app/administration; export PATH="$PWD/node_modules/.bin/:$PATH"; "$PROJECT_ROOT"/bin/exec-with-env handling the npm:admin:bin event returned with error code 255
Script @npm:admin:bin npm was called via npm:admin
Script @npm:admin clean-install --no-audit --prefer-offline was called via init:js
If that doesn’t help, you should try to figure out why the storefront assets cannot be loaded. In the browser console, you should see some requests for .js and .css that are failing. Maybe the configuration for your public filesystem is wrong, and the asset files stored there are not publicly accessible in your setup?
Refer to the docs for more info regarding the configuration for the Filesystem.
2
Answers
edo@158-EDIOSM-LT:~/platform$ composer run init:js
It seems that you are missing the CSS and JS files for the storefront.
Try running the following commands in the root dir of your installation to install and build the storefront javascript
Then assign the default theme and compile it again:
If that doesn’t help, you should try to figure out why the storefront assets cannot be loaded. In the browser console, you should see some requests for
.js
and.css
that are failing. Maybe the configuration for your public filesystem is wrong, and the asset files stored there are not publicly accessible in your setup?Refer to the docs for more info regarding the configuration for the Filesystem.