npm i puppeteer 无法设置 Chromium r756035

Ahm*_*ain 2 windows chromium npm puppeteer

在尝试安装 puppeteer 时:npm i puppeteer收到此错误。我的 Node 版本是 v12.16.3。我在 Windows 机器上。

<!-- language: lang-none -->
ERROR: Failed to set up Chromium r756035! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
Error: Client network socket disconnected before secure TLS connection was established
    at connResetException (internal/errors.js:608:14)
    at TLSSocket.onConnectEnd (_tls_wrap.js:1514:19)
    at Object.onceWrapper (events.js:416:28)
    at TLSSocket.emit (events.js:322:22)
    at endReadableNT (_stream_readable.js:1187:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
  -- ASYNC --
    at BrowserFetcher.<anonymous> (C:\Users\Red Viper\AppData\Roaming\npm\node_modules\puppeteer\lib\helper.js:116:19)
    at fetchBinary (C:\Users\Red Viper\AppData\Roaming\npm\node_modules\puppeteer\install.js:148:8)
    at download (C:\Users\Red Viper\AppData\Roaming\npm\node_modules\puppeteer\install.js:54:9) {
  code: 'ECONNRESET',
  path: null,
  host: 'storage.googleapis.com',
  port: 443,
  localAddress: undefined
}
Run Code Online (Sandbox Code Playgroud)

eki*_*bet 7

--unsafe-perm

这个对我有用!

npm i puppeteer -g --unsafe-perm
Run Code Online (Sandbox Code Playgroud)