Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

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.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
Say goodbye to the hassles of bike ownership! MotoShare.in offers affordable rentals, whether you need a scooter for errands, a bike for a road trip, or a reliable ride to explore new cities.

Related Posts

Java Installation Guide in Linux & Windows

DOWNLOAD OPEN JDK & JRE JAVA PACKAGE FROM – https://jdk.java.net/archive/ Download and Install JDK/JRE 7 in Centos & RHEL Download and Install JDK/JRE 8 in Centos &…

Read More

Linux Tutorials: Commands for Linux Administrator

1. sudo – Execute commands with elevated privileges, a fundamental for system administration. 2. useradd – Create a new user account, essential for managing user access. 3….

Read More

Linux Tutorials: How to troubleshoot Linux Server?

If a linux-build-server suddenly starts getting slow, I would divide my approach / troubleshooting into 3 section as follows; System Level troubleshooting Application Level troubleshooting Dependent Services troubleshooting…

Read More

What is Linux and use cases of Linux?

What is Linux? Linux is an open-source, Unix-like operating system kernel first created by Linus Torvalds in 1991. It serves as the foundation for a wide range…

Read More

Jenkins Tutorial: Install Jenkins on Ubuntu

In this tutorial we are going to install Jenkins on Ubuntu operating system. Ubuntu is another debian based operating system – open sourced and highly loved by…

Read More

Linux Performance Monitoring Guide

CPU Memory Network Storage Device and Input I/O Storage Capacity Storage Controller CPU Memory and I/O Interconnect Rajesh Kumar I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge…

Read More