Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
211 views
in Technique[技术] by (71.8m points)

puppeteer如何打包分发?

一个nodejs项目依赖了puppeteer,如何将其打包成exe安装包,在没有node环境的机器上安装使用?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)

可以看一下这个库: https://github.com/vercel/pkg

目前没有什么好的办法,这种库的做法其实都是类似的:把node.js打包进exe,给用户的感觉是直接安装了,但其实还是安装了一个node环境,只不过安装过程便捷了一些而已。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...