dps icon indicating copy to clipboard operation
dps copied to clipboard

Cannot find module 'puppeteer'

Open Yweimao opened this issue 3 years ago • 5 comments

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

Yweimao avatar Aug 11 '20 07:08 Yweimao

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

Cloudyttt avatar Aug 24 '20 11:08 Cloudyttt

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

famanoder avatar Aug 25 '20 17:08 famanoder

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

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

m-alfred avatar Sep 24 '20 01:09 m-alfred

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

MrLth avatar Sep 29 '20 02:09 MrLth

可以尝试全局安装 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

liuweiyibai avatar May 12 '21 04:05 liuweiyibai