Skip to content

Instantly share code, notes, and snippets.

@deepak-cotocus
Last active November 10, 2020 04:52
Show Gist options
  • Save deepak-cotocus/284e8e4427b3e7f40babc1e5d52ef342 to your computer and use it in GitHub Desktop.
Save deepak-cotocus/284e8e4427b3e7f40babc1e5d52ef342 to your computer and use it in GitHub Desktop.
NPM Error: Node Sass does not yet support your current environment: Linux 64-bit with false

Error:

Error: Node Sass does not yet support your current environment: Linux 64-bit with false

Introduction:

This is because of Node Sass. I got this error in ubuntu machine while running a command npm run prod

Error:

ERROR  Failed to compile with 8 errors                                                                              12:51:36 PM

 error  in ./resources/assets/sass/app.scss

Module build failed: Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (83)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.12.0
    at module.exports (/opt/lampp/htdocs/sp-hospital-ms/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/opt/lampp/htdocs/sp-hospital-ms/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/opt/lampp/htdocs/sp-hospital-ms/node_modules/sass-loader/lib/loader.js:3:14)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)

Solution

Worked for me

npm rebuild node-sass

If not work

sudo npm rebuild node-sass

It worked for me....

Then run npm run prod and check evrything will work fine.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment