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
Problem with PUPPETEER_SKIP_CHROMIUM_DOWNLOAD #2262
Comments
try this: env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm i puppeteer or just set it in your shell and run npm export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
npm i puppeteer i'm not experienced in node.js, but if i'm right, process.env only reads environment variables from the parent of the process, which is your shell. |
I tried this by adding the following to "config": {
"puppeteer_skip_chromium_download": true
} According to npm documentation, the variable specified in (I thought that adding the variable to |
Simply do this. |
This PR support set ```puppeteer_skip_chromium_download```, ```puppeteer_download_host``` and ```puppeteer_chromium_revision``` in ```config``` of ```package.json``` Fixes #2262
To build on @sapanprajapati's answer above, please see my comment in #2270. It appears you don't need this as a global setting, rather you can just make it at the project level. |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD": true
into package.json config section.PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
to local .npmrc file.npm config set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
to put property in global .npmrc file.npm i puppeteer
to install puppeteer.What is the expected result?
Puppeteer won't download chromium.
What happens instead?
Puppeteer downloaded chromium. (-_-)
In install.js we can see that puppeteer tries to read
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
,NPM_CONFIG_PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
andnpm_config_puppeteer_skip_chromium_download
environment variables and didn't read any config.How it could work? Who should have to fill this variables if I would like to use only npm config without global envirements?
The text was updated successfully, but these errors were encountered: