[ https://issues.apache.org/jira/browse/WEEX-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16359797#comment-16359797 ]
linshao...@meizu.com commented on WEEX-214: ------------------------------------------- [~erhaa19] 下面是npm的配置 linshaoyou@linshaoyou:/home/linshaoyou/code$ npm config get ; cli configs metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/5.6.0 node/v8.9.4 linux x64" ; userconfig /home/linshaoyou/.npmrc PUPPETEER_DOWNLOAD_HOST = "https://storage.googleapis.com.cnpmjs.org" ; node bin location = /home/linshaoyou/work/developerTool/Node/node-v8.9.4-linux-x64/bin/node ; cwd = /home/linshaoyou1/work/patch-code/flyme5/flyme5_base/meizu/SDK ; HOME = /home/linshaoyou ; "npm config ls -l" to show all defaults. linshaoyou@linshaoyou:/home/linshaoyou/code$ > weex debug error,AssertionError [ERR_ASSERTION]: Chromium revision is not > downloaded. Run "npm install" > ------------------------------------------------------------------------------------------------------- > > Key: WEEX-214 > URL: https://issues.apache.org/jira/browse/WEEX-214 > Project: Weex > Issue Type: Bug > Reporter: linshao...@meizu.com > Assignee: Adam Feng > Priority: Major > Attachments: a.png, c.png > > > {color:#FF0000}1.执行weex debug 的时候,提示{color} > 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! > > {color:#FF0000}2.set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1后重新执行weex > debug,报下面的错误{color} > AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm > install" > > {color:#FF0000}3.自动打开的浏览器,看不到二维码如附件所示{color} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)