Slide 1
Excellent Education Program
Innovative Methods of Teaching

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 3
Learning Through Play
Find a Class for your Children

Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis.

previous arrow
next arrow

npm error on Linux: Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x

Spread the Knowledge

Environment:
Linux 64-bit
Laravel 5.5
Node.js 12.x

How I got this error:
I made some changes in one of the js file of my project. Hence, I needed to rebuild the JS part of the application.

The below mentioned command is to recompile/ re build the js part of the application:
npm run dev

I got the following error after running the above command:
Module build failed: Error: Missing binding /opt/lampp/htdocs/sp-hospital-ms/node_modules/node-sass/vendor/linux-x64-72/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x
Found bindings for the following environments:
- Linux 64-bit with Unsupported runtime (79)
This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to download the binding for your current environment.
at module.exports (/opt/lampp/htdocs/sp-hospital-ms/node_modules/node-sass/lib/binding.js:15:13)
at Object. (/opt/lampp/htdocs/sp-hospital-ms/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/opt/lampp/htdocs/sp-hospital-ms/node_modules/sass-loader/lib/loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at loadLoader (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/loadLoader.js:18:17)
at iteratePitchingLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at iteratePitchingLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:165:10)
at /opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:176:18
at loadLoader (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/loadLoader.js:47:3)
at iteratePitchingLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at iteratePitchingLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:165:10)
at /opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:176:18
at loadLoader (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/loadLoader.js:47:3)
at iteratePitchingLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at iteratePitchingLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:165:10)
at /opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:176:18
at loadLoader (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/loadLoader.js:47:3)
at iteratePitchingLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at runLoaders (/opt/lampp/htdocs/sp-hospital-ms/node_modules/loader-runner/lib/LoaderRunner.js:365:2)

Solution:
npm rebuild node-sass
then
npm run dev

Chetan