Skip to content
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' #25

Open
Yweimao opened this issue Aug 11, 2020 · 5 comments
Open

Cannot find module 'puppeteer' #25

Yweimao opened this issue Aug 11, 2020 · 5 comments

Comments

@Yweimao
Copy link

Yweimao commented Aug 11, 2020

安装插件后 使用 dps init 就报这个错误

@Cloudyttt
Copy link

你好,你找到解决这个问题的办法了不

@famanoder
Copy link
Owner

麻烦贴一下详细的报错信息

@m-alfred
Copy link

安装插件后 使用 dps init 就报这个错误

使用npm i -g draw-page-structure 替换yarn global add draw-page-structure试下

@MrLth
Copy link

MrLth commented Sep 29, 2020

我执行yarn cache clean后,卸载重新安装可以了。
yarn cache clean
npm uninstall draw-page-structure -g
npm i draw-page-structure -g

@liuweiyibai
Copy link

可以尝试全局安装 puppeteer

# 解决镜像源问题
npm config chromedriver_cdnurl http://npm.taobao.org/mirrors/chromedriver
npm config puppeteer_download_host https://npm.taobao.org/mirrors
npm i puppeteer -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants