-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一直提示Cannot read property 'newPage' of null" #20
Comments
Your application is running here: http://localhost:8587 |
@dawang0123 //node_modules\page-skeleton-webpack-plugin\src\skeleton.js
//26行
this.browser = await puppeteer.launch({ headless })
//改成
this.browser = await puppeteer.launch({ headless, executablePath: 'you/chrome/path/chrome.exe' }) |
还是会报Cannot read property 'newPage' of null |
同样的问题 |
@haruhihi 确实是 |
|
多执行几次 npm install puppeteer 直到成功 |
我也遇到这个问题。log后发现 this.browser = await puppeteer.launch({ headless }) 一直是null.多执行几次 npm install puppeteer(registry淘宝镜像) 直到成功。会有一个安装chromeium的过程。最后解决了问题。但是最后生成的样式有问题 |
cnpm install puppeteer |
The text was updated successfully, but these errors were encountered: