![](/img/trans.png)
[英]Different size of the components in the view depending of the operating system or target
[英]Puppeteer installation for different operating system
在我的 CI/CD 环境中,我使用 linux 来构建我的应用程序。 但是,我的 node.js 应用程序在 windows 服务器上运行。
这是问题所在:在 linux 系统上执行 npm install 将为 puppeteer 安装 linux chromium 版本。 在 windows 系统上执行此生成的文件(带有 node_modules)时,缺少必要的铬版本。
如何解决? 我只发现了一个相关的问题,没有得到充分的回答。 任何解决方案都不起作用。 Puppeteer:为不同平台下载 Chromium
尝试在$ npm install
之前删除 Windows 上的文件package-lock.json
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.