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

Viewed 9151

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.

3 Answers

As mentioned in a comment, I also had to run npm rebuild node-sass. So my complete steps to fix were:

nvm ls-remote | grep v14.
nvm install 14.17.5
npm rebuild node-sass
npm install
npm run build

Make sure you have added both packages in your package.json

  1. node-sass
  2. sass-loader
Related