npm run dev
> dev
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
/var/www/html/web/themes/custom/bls/node_modules/webpack-cli/bin/cli.js:93
throw err;
^
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
at module.exports (/var/www/html/web/themes/custom/bls/node_modules/node-sass/lib/binding.js:13:13)
at Object.<anonymous> (/var/www/html/web/themes/custom/bls/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (/var/www/html/web/themes/custom/bls/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (/var/www/html/web/themes/custom/bls/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at implementation (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/Sass.js:56:27)
at /var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/Preprocessor.js:138:61
at global.tap (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/helpers.js:10:5)
at Sass.loaderOptions (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/Preprocessor.js:136:9)
at /var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/Preprocessor.js:95:39
at global.tap (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/helpers.js:10:5)
at /var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/Preprocessor.js:27:13
at Array.forEach (<anonymous>)
at Sass.webpackRules (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/Preprocessor.js:22:22)
at ComponentFactory.applyRules (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/ComponentFactory.js:155:23)
at /var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/components/ComponentFactory.js:66:48
at /var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/Dispatcher.js:34:47
at Array.forEach (<anonymous>)
at Dispatcher.fire (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/Dispatcher.js:34:28)
at Mix.dispatch (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/Mix.js:118:25)
at WebpackConfig.buildRules (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/builder/WebpackConfig.js:90:13)
at WebpackConfig.build (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/src/builder/WebpackConfig.js:23:14)
at Object.<anonymous> (/var/www/html/web/themes/custom/bls/node_modules/laravel-mix/setup/webpack.config.js:29:38)
at Module._compile (/var/www/html/web/themes/custom/bls/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (/var/www/html/web/themes/custom/bls/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at WEBPACK_OPTIONS (/var/www/html/web/themes/custom/bls/node_modules/webpack-cli/bin/utils/convert-argv.js:114:13)
at requireConfig (/var/www/html/web/themes/custom/bls/node_modules/webpack-cli/bin/utils/convert-argv.js:116:6)
at /var/www/html/web/themes/custom/bls/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17
at Array.forEach (<anonymous>)
npm ERR! code 1
npm ERR! path /var/www/html/web/themes/custom/bls
npm ERR! command failed
npm ERR! command sh -c cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
Comments
Comment #2
yi_jiang commentednpm install
Comment #3
yi_jiang commentedremoved the node_sass works
Comment #4
doxigo commentedHey Yi, it's environment related issue, Not all packages work with the latest node versions, try removing node_modules and switch to lets say node 12 and try again
Comment #5
doxigo commentedComment #6
doxigo commentedthe same as the other issue, closing it
Comment #7
yi_jiang commentedactually come back this, you dont need node-sass module. Laravel-mix builtin sass. Node-sass got same issue on node 13 which isnt good encourage users to use node12
Comment #8
doxigo commentedHey Yi, thanks for noting that
I'll have to test if the built-in handling of the laravel-mix wouldn't cause any drawbacks
Also, the limitation on node12 is due to the CriticalCSS part, I'm not aware of Node 13 issue with node-sass, not sure what to do here.
might have to come up with another up to dated package for the critical CSS part
Comment #9
yi_jiang commentedYou are right, I think the node-sass is different issue for node13 for me. but I totally remove it, no harm!
In term of the criticalCSS, I would suggest leave it for optional if the fancy doco could be happened in the future.
Comment #10
doxigo commentedYi I did manage to switch to a more prominent package for criticalCSS which supports and do not have hardcoded dependency to a certain node env. Works with the latest LTS releases:
https://git.drupalcode.org/project/bootstrap_storybook/commit/f6a0b1e