Uploaded image for project: 'Weex (Retired)'
  1. Weex (Retired)
  2. WEEX-214

weex debug error,AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      1.执行weex debug 的时候,提示

      This command need to install weex-debugger. Installing...
      ERROR: Failed to download Chromium r515411! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
      Error: Download failed: server returned code 302. URL: https://npm.taobao.org/mirrors/chromium-browser-snapshots/Linux_x64/515411/chrome-linux.zip
      at ClientRequest.https.get.response (/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/puppeteer/utils/ChromiumDownloader.js:198:21)
      at Object.onceWrapper (events.js:315:30)
      at emitOne (events.js:116:13)
      at ClientRequest.emit (events.js:211:7)
      at HTTPParser.parserOnIncomingClient (_http_client.js:551:21)
      at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
      at TLSSocket.socketOnData (_http_client.js:440:20)
      at emitOne (events.js:116:13)
      at TLSSocket.emit (events.js:211:7)
      at addChunk (_stream_readable.js:263:12)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! puppeteer@0.13.0 install: `node install.js`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the puppeteer@0.13.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! /home/linshaoyou/.npm/_logs/2018-02-10T09_29_52_739Z-debug.log
      17:29:53 : Error: fatal error!

       

      2.set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1后重新执行weex debug,报下面的错误

      AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install"

       

      3.自动打开的浏览器,看不到二维码如附件所示

       

      Attachments

        1. d.png
          70 kB
          linshaoyou@meizu.com
        2. c.png
          24 kB
          linshaoyou@meizu.com
        3. a.png
          23 kB
          linshaoyou@meizu.com

        Activity

          People

            cxfeng Adam Feng
            linshaoyou@meizu.com linshaoyou@meizu.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: