![]() ![]() Npm ERR! A complete log of this run can be found in: There is likely additional logging output above. Jest provides assertion libraries and configuration for the puppeteer. From Visual Studio Code Terminal, enter the command. Npm ERR! This is probably not a problem with npm. Step 5: Install the puppeteer npm module. Npm WARN enoent ENOENT: no such file or directory, open 'D:\webs\scraper\package.json' URL: Īt D:\webs\scraper\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserFetcher.js:366:27Īt ClientRequest.requestCallback (D:\webs\scraper\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserFetcher.js:492:13)Īt HTTPParser.parserOnIncomingClient (_http_client.js:647:27)Īt HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)Īt TLSSocket.socketOnData (_http_client.js:515:22)Īt addChunk (internal/streams/readable.js:309:12)Īt readableAddChunk (internal/streams/readable.js:284:9) node generatePDF.js This will generate a resume.pdffile in the same directory. Now, run the command below in the same shell/directory. You should be pointing to the root of the project: puppeteer-demo Step 4: Enter Command to create package. npm install -save puppeteer Now let’s create a file named generatePDF.jswith the code below - Make sure your resume.htmlfile’s path is correct. When I write npm install puppeteer terminal show me this ERROR : ERROR: Failed to set up Chromium r869685! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.Įrror: Download failed: server returned code 403. Step 1: Create an empty directory let’s name it puppeteer-demo Step 2: Open the newly created empty directory (puppeteer-demo) in Visual Studio Code. ![]()
0 Comments
Leave a Reply. |