getting error : chromedriver installation failed error eacces permission denied mkdir

Viewed 3868

When I tried to install Chrome driver npm install chromedriver --chromedriver-force-download with node js, I am getting this error: chromedriver installation failed error eacces permission denied mkdir.

I have applied full permission of 777 and I'm still getting this error, can anyone please help me why I'm getting this error?

I used these commands:

1) npm i chromedriver

2) Force Download : npm install chromedriver --chromedriver-force-download
2 Answers

This one works for me on Ubuntu 20.04

sudo npm -g install chromedriver --unsafe-perm=true --allow-root

Try out using the sudo keyword

 1)sudo npm i chromedriver

2) Force Download :sudo npm install chromedriver --chromedriver-force-download
Related