运行 npm 后,我看到了这个错误。我该如何解决?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@1.20.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@1.20.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AppData\Roaming\npm-cache\_logs\2020-04-17T15_35_46_212Z-debug.log
我跑了:
npm install puppeteer --unsafe-perm=true --allow-root
但这并没有帮助。
最佳答案
运行这个命令:
npm config set puppeteer_skip_chromium_download true -g
然后尝试重新安装
关于npm - 为什么我在执行 npm install 时会看到这个,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61275597/