Fahid Javid

Fahid Javid


My name is Fahid and I’m a Full-Stack WordPress Developer. I started working with WordPress community and I’m finding myself learning something new every single day.

April 2018
M T W T F S S
« Jan    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Categories


How to fix ( Error: EACCES: permission denied, mkdir )

Fahid JavidFahid Javid

Nodejs and NPM have made life so easier. If you use Gulp toolkit with it I am sure you love it 😍

However, I came across Error: EACCES: permission denied, mkdir (directory permissions) issue today when I tried to install all gulp packages and their dependencies with the following commands in a project.

$ npm install

I also tried by updating Nodejs, NPM and by installing NPM with sudo to give it current user administrative permissions.

$ sudo npm update
$ sudo npm install

I got the same error every single time. After digging into this issue and reading log file I used the NPM install command with sudo and a couple of permission flags given below.

$ sudo npm install --unsafe-perm=true --allow-root

This command fixed the issue. It worked like a charm and installed all gulp packages without any directory permission errors.

My name is Fahid and I’m a Full-Stack WordPress Developer. I started working with WordPress community and I’m finding myself learning something new every single day.

Comments 0
There are currently no comments.