我已经在heroku的express api上安装了puppeteer,并且我正在使用他们的heroku git cli,现在我已经从package.json文件中删除了puppeteer,并运行npm install并尝试推送到github,但它似乎仍然在编写本地的chromium文件,这对于github来说太大了,有没有办法完全删除Puppeteer?
谢谢
发布于 2020-08-29 02:12:59
如果npm uninstall puppeteer不起作用,您可以删除node_modules文件夹,然后再次运行npm install。这将从头开始重新安装每个模块。
如果您已经暂存/提交了该文件,则可以通过运行git rm -rf path/to/file --cached将其删除。
https://stackoverflow.com/questions/62348340
复制相似问题