skip to Main Content

Javascript – Getting correct selector using Puppeteer

here's the HTML code. <div class="list-row"> <div class="list-item"> <div class="imgframe"> <div class="img-wrap"> <div class="img-item"> <a href=""> <img src="img1"> </a> <div class="in-lable"> <a href="link1"> <span class="title">title1</span> </a> </div> </div> <div class="img-item"> <a href=""> <img src="img2"> </a> <div class="in-lable"> <a href="link2"> <span…

VIEW QUESTION

Centos – Using npm to install puppetteer gives Error: Cannot find module 'puppeteer/internal/node/install.js'

Trying to install puppeteer on Centos 7 npm i puppeteer > [email protected] postinstall /mypath/node_modules/puppeteer > node install.js internal/modules/cjs/loader.js:775 throw err; ^ Error: Cannot find module 'puppeteer/internal/node/install.js' Require stack: - /mypath/node_modules/puppeteer/install.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15) at Function.Module._load (internal/modules/cjs/loader.js:677:27) at Module.require (internal/modules/cjs/loader.js:830:19) at…

VIEW QUESTION

Cannot execute puppeteer from php

When I try to run a Puppeteer command from PHP using the exec function, I get this error: Error: EACCES: permission denied, stat '/root/.config/puppeteer' Do you know how to resolve this problem? I tried to set the owner and the…

VIEW QUESTION
Back To Top
Search