Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download failed: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/puppeteer/.local-chromium' + puppeteer@0.9.0 #367

Closed
unclehking opened this issue Aug 18, 2017 · 15 comments
Assignees
Labels

Comments

@unclehking
Copy link

unclehking commented Aug 18, 2017

npm install puppeteer

Download failed: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/puppeteer/.local-chromium'

CentOS 6

@meldron
Copy link

meldron commented Aug 18, 2017

What is your npm.prefix?

Check it with: npm prefix -g

If the directory is located somewhere were a normal user has no write access you will have to sudo npm install puppeteer or install it in some project (npm init)

@umpox
Copy link

umpox commented Aug 18, 2017

I have the same problem, I'm using it as a dependency on a project I'm working on. If I try to install my project globally using sudo npm install myProject -g I get this same error message

@aslushnikov aslushnikov self-assigned this Aug 18, 2017
@Garbee
Copy link
Contributor

Garbee commented Aug 18, 2017

Also ref #375

@ebidel
Copy link
Contributor

ebidel commented Aug 18, 2017

Shall we mark this as a dupe of #375?

@aslushnikov
Copy link
Contributor

Dupe of #375 :)

@kauecastro
Copy link

Have already you fixed this problem ? Could you show me the solution ? :)

@antsfee
Copy link

antsfee commented Nov 14, 2017

init project i use yarn
I have the same problem.
then I remove all dependency
, use npm reinstall package ,
ok .
hope it's usefully

@sryze
Copy link

sryze commented Dec 18, 2017

How come this fails to install even if using sudo? I'm trying to install critical using sudo npm install -g critical but it gives me this error.

@proyb6
Copy link

proyb6 commented Dec 22, 2017

@sryze It has the do with Nodejs 8, have you tried using Nodejs 6 or 7?

@tyt34
Copy link

tyt34 commented Jan 24, 2018

guys, don't use SUDO when you install this module. Вот.

@hopeseekr
Copy link

After hunting around the Internet, I found a solution:

sudo npm install -g puppeteer --unsafe-perm=true

@muhammedbasilsk
Copy link

@hopeseekr you rock !!!

@Liberateur
Copy link

Liberateur commented Jun 30, 2020

sudo npm install -g puppeteer --unsafe-perm=true works and really thanks ! But I really wanted to understand why I had this error.

For me :
npm init && npm i puppeteer -> does not work
npm init && sudo npm i puppeteer -> does not work
sudo npm init && sudo npm i puppeteer -> works

@naqashse102
Copy link

@hopeseekr you saved my day

@76765357
Copy link

don't use nvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests