-
-
Notifications
You must be signed in to change notification settings - Fork 115
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 find module puppeteer #16
Comments
Same here |
@harlan-zw I tried to use but still had the same error |
Ah damn, sorry it's not something I can replicate so just trying to fix it based on what I think the issue is. Could you try one thing for me, install the package as a global dependencies and try run it
|
Hmmm all the same, unfortunately. If you want send me DM on Twitter and we can do more tests and debug it easier. |
Hi, |
@harlan-zw does this help? |
This might be caused by a different channel of Chrome being installed, so puppeteer cannot find it. In my case, I have Chrome Dev installed. I fixed the issue by defining the path to the Chrome executable in export default {
puppeteerOptions: {
executablePath: "C:\\Program Files (x86)\\Google\\Chrome Dev\\Application\\chrome.exe"
}
} I've run into this problem on similar projects, so I've opened a PR on the |
Make sure that you have Chrome installed and then in the same path you trigger the npx unlighthouse, do what @LachlanArthur has done. It has worked for me |
Hi @harlan-zw 👋
As you can see in the image unlighthouse never picks puppeteer, even though it is installed globally. I'm using nvm and the path would be
/Users/tragio/.nvm/versions/node/v14.19.1/lib/node_modules/
and notfile:///Users/tragio, file:///Users/tragio/node_modules
as stated in the error message 🤔 I wonder if the error is related to that.Thank you for your amazing work 🙏
The text was updated successfully, but these errors were encountered: