vue.jsgitlab-cinode-sassnpm-build

Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (88)


I'm deploying my Vue.js project on GitLab pages.

Running npm run build during GitLab CI pipeline results in errors:

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (88)

I don't get any errors during npm run build locally.

Appreciate if someone can help.


Solution

  • node-sass does not support Node 15 (runtime **) currently. It will come with when v5 when it is published to NPM. You can subscribe to the tracking issue here https://github.com/sass/node-sass/issues/2965 node-sass 4.x will not receive support for Node 15 https://github.com/sass/node-sass#node-version-support-policy, so you may want to downgrade your Node version to 14 currently