'Can't install puppeteer on Windows 10
I am having a trouble in installing Puppeteer on Windows 10, when I type npm i puppeteer and Enter, after a while install, I got those error:
npm ERR! code 1
npm ERR! path D:\VSCode\Files\NodeJS\node_modules\puppeteer
npm ERR! command failed
npm ERR! command D:\Windows\system32\cmd.exe /d /s /c node install.js
npm ERR! node:events:505
npm ERR! throw er; // Unhandled 'error' event
npm ERR! ^
npm ERR!
npm ERR! Error: A81A0000:error:0A000119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:614:
npm ERR!
npm ERR! Emitted 'error' event on ClientRequest instance at:
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:454:9)
npm ERR! at TLSSocket.emit (node:events:527:28)
npm ERR! at TLSSocket._emitTLSError (node:_tls_wrap:901:10)
npm ERR! at TLSWrap.onerror (node:_tls_wrap:433:11) {
npm ERR! library: 'SSL routines',
npm ERR! reason: 'decryption failed or bad record mac',
npm ERR! code: 'ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC'
npm ERR! }
npm ERR!
npm ERR! Node.js v18.0.0
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Users\Administrator\AppData\Local\npm-cache\_logs\2022-05-04T09_42_58_161Z-debug-0.log
I have set the PUPPETEER_DOWNLOAD_HOST to storage.googleapis.com but It's not help me. Can someone help me install it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
