Building fresh packages - 卡在puppeteer


初始化的時候開在puppeteer:

[5/5] Building fresh packages...
[-/11] ⠈ waiting...
[-/11] ⠈ waiting...
[11/11] ⠈ puppeteer
[-/11] ⠈ waiting...
[-/11] ⠁ waiting...

解決:

我用的是yarn:

步驟1:

  yarn config set puppeteer_download_host https://npm.taobao.org/mirrors

步驟2:

yarn add puppeteer --ignore-scripts
cd node_modules/puppeteer
yarn exec node install.js // 此處如果不設置第一步淘寶下載源,會卡在下載cromniom,應該是直接去google源下載


參見:
https://github.com/yarnpkg/yarn/issues/6663
https://www.cnblogs.com/jffun-blog/p/10211982.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM