shyim / shopware-docker

Easy to use Docker Installation for Shopware 5 and Shopware 6
MIT License
115 stars 27 forks source link

Error in `admin-build` after latest pull #75

Closed zaifastafa closed 3 years ago

zaifastafa commented 3 years ago

Hi @shyim After pulling the latest changes and doing update-images, I get the following errors when I execute admin-build

ERROR in ./src/app/component/base/sw-user-card/sw-user-card.scss (./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js??ref--15-2!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/app/component/base/sw-user-card/sw-user-card.scss)
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Missing binding /var/www/html/fdl6/platform/src/Administration/Resources/app/administration/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node
Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 14.x

Found bindings for the following environments:
  - Linux/musl 64-bit with Node.js 12.x

This usually happens because your environment has changed since running `npm install`.

Any idea what is causing that? I am on the 6.3.4.0 branch.

shyim commented 3 years ago

Delete node_modules by yourself and run swdc admin-init

zaifastafa commented 3 years ago

Thanks, had to run admin-build instead of admin-init.

zaifastafa commented 3 years ago

Hey, the same error comes when using ./psh install And this time I already did remove node_modules from the administration and storefront as well. Everything runs fine up until

(30/38) Starting
> npm --prefix vendor/shopware/platform/src/Storefront/Resources/app/storefront/ clean-install
shyim commented 3 years ago

with same message?

zaifastafa commented 3 years ago

Not exact same message but it is related to sass / node modues:

gyp ERR! System Linux 5.4.0-62-generic
    gyp ERR! command "/usr/bin/node" "/var/www/html/sw6/platform/src/Storefront/Resources/app/storefront/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    gyp ERR! cwd /var/www/html/sw6/platform/src/Storefront/Resources/app/storefront/node_modules/node-sass
    gyp ERR! node -v v14.15.4
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok 
    Build failed with error code: 1
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the node-sass@4.13.1 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/dev/.npm/_logs/2021-01-21T12_13_16_728Z-debug.log

Execution aborted, a subcommand failed!
shyim commented 3 years ago

Uff I can reproduce it. I hate it. Need to downgrade somehow nodejs...

shyim commented 3 years ago
zaifastafa commented 3 years ago

Thanks! Works 🎊