Closed Softman65 closed 3 years ago
I Think it's not related to whatsapp-web.js, it's look like you have problem with your environment check this
and also check user that used to install is permitted to do the installation, Cheers
Thanks for your response, its true, in other machine NOT sucess the bug.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
system: windows10
d:\WhatsAppBot>npm install whatsapp-web.js --save
Downloading Chromium r818858 - 154.2 Mb [====================] 100% 0.0s ERROR: Failed to set up Chromium r818858! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. TypeError: Cannot read property 'mkdir' of undefined at Object.module.exports [as default] (d:\WhatsAppBot\node_modules\extract-zip\index.js:170:12) at install (d:\WhatsAppBot\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserFetcher.js:384:37) at BrowserFetcher.download (d:\WhatsAppBot\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserFetcher.js:240:19) npm WARN Error: EPERM: operation not permitted, rmdir 'd:\WhatsAppBot\node_modules\@types' npm WARN { Error: EPERM: operation not permitted, rmdir 'd:\WhatsAppBot\node_modules\@types' npm WARN stack: 'Error: EPERM: operation not permitted, rmdir \'d:\WhatsAppBot\node_modules\@types\'', npm WARN errno: -4048, npm WARN code: 'EPERM', npm WARN syscall: 'rmdir', npm WARN path: 'd:\WhatsAppBot\node_modules\@types' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! puppeteer@5.5.0 install:
node install.js
npm ERR! Exit status 1