npm install 报错 npm ERR! puppeteer@1.20.0 install: `node install.js`

343 阅读1分钟
  • 在执行 npm install 时报错:

    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 config set puppeteer_skip_chromium_download true -g
    
  • 然后重新安装即可!