πŸš€ DevOps & SRE Certification Program πŸ“… Starting: 1st of Every Month 🀝 +91 8409492687 πŸ” Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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

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

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.