set PUPPETEER_SKIP_DOWNLOAD=true 在哪里执行
时间: 2023-12-21 09:03:04 浏览: 45
`set PUPPETEER_SKIP_DOWNLOAD=true` 是在命令行中设置一个环境变量,用于告诉 Puppeteer 在安装时跳过下载 Chromium 浏览器。在 Windows 系统中,可以在命令行或者 PowerShell 中执行该命令。在 Linux 或者 macOS 系统中,需要在终端中执行该命令。
如果您使用的是 Windows 系统,请按照以下步骤执行该命令:
1. 打开命令提示符或 PowerShell。
2. 输入 `set PUPPETEER_SKIP_DOWNLOAD=true` 命令并按下回车键。
如果您使用的是 Linux 或 macOS 系统,请按照以下步骤执行该命令:
1. 打开终端。
2. 输入 `export PUPPETEER_SKIP_DOWNLOAD=true` 命令并按下回车键。
这样设置后,在安装 Puppeteer 时就会跳过下载 Chromium 浏览器,而是使用已经安装在本地的浏览器。
相关问题
Set PUPPETEER_SKIP_DOWNLOAD env variable to skip download
Thank you for the information! Setting the PUPPETEER_SKIP_DOWNLOAD environment variable can be useful when you want to skip the download of the Chromium browser for Puppeteer. This can save time and disk space if you already have Chromium or Chrome installed on your system. To set the PUPPETEER_SKIP_DOWNLOAD environment variable, you can do the following:
On Linux or macOS:
```
export PUPPETEER_SKIP_DOWNLOAD=true
```
On Windows:
```
set PUPPETEER_SKIP_DOWNLOAD=true
```
You can set this variable before running your Puppeteer script, and Puppeteer will use the installed version of Chromium instead of downloading a new one.
element-plus PUPPETEER_SKIP_DOWNLOAD
根据提供的引用内容,PUPPETEER_SKIP_DOWNLOAD是一个环境变量,用于控制在安装puppeteer时是否下载Chromium二进制文件。如果将其设置为true,则不会下载Chromium二进制文件,而是需要手动提供Chromium二进制文件的路径。而element-plus是一个基于Vue.js 2.0的桌面端组件库,与PUPPETEER_SKIP_DOWNLOAD没有直接关联。