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

[Bug]: new .cache browser download directory breaks running as different user #9162

Closed
jribbens opened this issue Oct 25, 2022 · 2 comments
Closed
Assignees
Labels

Comments

@jribbens
Copy link

Bug description

Steps to reproduce the problem:

  1. Install puppeteer then run it as a different user from the one you installed it as.
  2. puppeteer tells you you haven't run npm install, which is untrue.

I realise you may well think this is fine, but it's a significant change from the previous behaviour and I can't find it documented (it doesn't help that you've deleted the CHANGELOG!) and it took me considerable time to work out that what I needed to do was set PUPPETEER_EXECUTABLE_PATH and even longer to work out what I needed to set it to.

Puppeteer version

19.1.0

Node.js version

16.18.0

npm version

8.19.2

What operating system are you seeing the problem on?

Linux

Relevant log output

$ node .
<successful run>
$ sudo -ufoo node .
Error: Run `npm install` to download the correct Chromium revision (1045629).
@jribbens jribbens added the bug label Oct 25, 2022
@jrandolf
Copy link
Contributor

Duplicate of #9162.

Some documentation has migrated due to monorepo changed, however everything still exists (in better shape in fact).

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

3 participants