🚀 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!

Ubuntu or Linux error: Error: EACCES: permission denied, mkdir ‘/opt/lampp/htdocs/node_modules/node-sass/vendor’

How I got this error:
I got this error while running command: npm install in one of my project directory located at /opt/lamoo/htdocs

What was the Error:

root@ip-ip-address:/opt/lampp/htdocs/[projectName]# npm install

] node-sass@4.13.1 install /opt/lampp/htdocs/[projectName]/node_modules/node-sass
] node scripts/install.js

Unable to save binary /opt/lampp/htdocs/[projectName]/node_modules/node-sass/vendor/linux-x64-72 : Error: EACCES: permission denied, mkdir '/opt/lampp/htdocs/[projectName]/node_modules/node-sass/vendor'
at Object.mkdirSync (fs.js:823:3)
at sync (/opt/lampp/htdocs/[projectName]/node_modules/mkdirp/index.js:71:13)
at Function.sync (/opt/lampp/htdocs/[projectName]/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/opt/lampp/htdocs/[projectName]/node_modules/node-sass/scripts/install.js:114:11)
at Object.anonymous
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 Function.Module.runMain (internal/modules/cjs/loader.js:1043:10) {
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/opt/lampp/htdocs/[projectName]/node_modules/node-sass/vendor'
}

Solution:
Run sudo npm install

Thanks for reading, I hope you enjoyed the article.

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.