[ 
https://issues.apache.org/jira/browse/WEEX-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16373872#comment-16373872
 ] 

linshao...@meizu.com edited comment on WEEX-214 at 2/23/18 3:42 AM:
--------------------------------------------------------------------

{color:#ff0000}[~erhaa19]{color}

{color:#ff0000}我重新试了一下,Chromium 还是不能下载,麻烦帮忙再看看?{color}

以下是log

linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm -v{color}
 {color:#59afe1}5.6.0{color}
 linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}node -v{color}
 {color:#59afe1}v8.9.4{color}
 linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}weex -v{color}
 {color:#59afe1}v1.2.9{color}
 {color:#59afe1} - weex-builder : v0.3.14{color}
 {color:#59afe1} - weex-previewer : v1.4.6{color}
 linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}rm -rf 
~/.xtoolkit/node_modules/weex-debugger{color}
 linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm config set 
PUPPETEER_DOWNLOAD_HOST 
[https://storage.googleapis.com.cnpmjs.org|https://storage.googleapis.com.cnpmjs.org/]{color}
 linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}weex config registry 
[https://registry.npm.taobao.org/]{color}
 {color:#59afe1}Set registry = "https://registry.npm.taobao.org/"{color}
 linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm config set registry 
[https://registry.npm.taobao.org/]{color}
 linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm config get{color}
 {color:#59afe1}; cli configs{color}
 {color:#59afe1}metrics-registry = "https://registry.npm.taobao.org/"{color}
 {color:#59afe1}scope = ""{color}
 {color:#59afe1}user-agent = "npm/5.6.0 node/v8.9.4 linux x64"{color}

{color:#59afe1}; userconfig /home/linshaoyou/.npmrc{color}
 {color:#59afe1}PUPPETEER_DOWNLOAD_HOST = 
"https://storage.googleapis.com.cnpmjs.org"{color}
 {color:#59afe1}registry = "https://registry.npm.taobao.org/"{color}

{color:#59afe1}; node bin location = 
/home/linshaoyou/work/developerTool/Node/node-v8.9.4-linux-x64/bin/node{color}
 {color:#59afe1}; cwd = /home/linshaoyou/.xtoolkit{color}
 {color:#59afe1}; HOME = /home/linshaoyou{color}
 {color:#59afe1}; "npm config ls -l" to show all defaults.{color}

linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm i weex-debugger 
--save{color}

{color:#d04437}> puppeteer@1.0.0 install 
/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/puppeteer{color}
 {color:#d04437}> node install.js{color}

{color:#d04437}ERROR: Failed to download Chromium r526987! Set 
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.{color}
 {color:#d04437}{ Error: read ECONNRESET{color}
 {color:#d04437} at _errnoException (util.js:1022:11){color}
 {color:#d04437} at TLSWrap.onread (net.js:615:25) code: 'ECONNRESET', errno: 
'ECONNRESET', syscall: 'read' }{color}
 {color:#d04437}npm WARN enoent ENOENT: no such file or directory, open 
'/home/linshaoyou/.xtoolkit/package.json'{color}
 {color:#d04437}npm WARN .xtoolkit No description{color}
 {color:#d04437}npm WARN .xtoolkit No repository field.{color}
 {color:#d04437}npm WARN .xtoolkit No README data{color}
 {color:#d04437}npm WARN .xtoolkit No license field.{color}
 {color:#d04437}npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 
(node_modules/weex-debugger/node_modules/fsevents):{color}
 {color:#d04437}npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported 
platform for fsevents@1.1.2: wanted \{"os":"darwin","arch":"any"} (current: 
\{"os":"linux","arch":"x64"}){color}

{color:#d04437}npm ERR! code ELIFECYCLE{color}
 {color:#d04437}npm ERR! errno 1{color}
 {color:#d04437}npm ERR! puppeteer@1.0.0 install: `node install.js`{color}
 {color:#d04437}npm ERR! Exit status 1{color}
 {color:#d04437}npm ERR! {color}
 {color:#d04437}npm ERR! Failed at the puppeteer@1.0.0 install script.{color}
 {color:#d04437}npm ERR! This is probably not a problem with npm. There is 
likely additional logging output above.{color}

{color:#d04437}npm ERR! A complete log of this run can be found in:{color}
 {color:#d04437}npm ERR! 
/home/linshaoyou/.npm/_logs/2018-02-23T03_15_44_311Z-debug.log{color}
 linshaoyou@linshaoyou:~/.xtoolkit$


was (Author: linshao...@meizu.com):
{color:#FF0000}[~erhaa19]{color}

{color:#FF0000}我重新试了一下,Chromium 还是不能下载{color}

以下是log

linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm -v{color}
{color:#59afe1}5.6.0{color}
linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}node -v{color}
{color:#59afe1}v8.9.4{color}
linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}weex -v{color}
 {color:#59afe1}v1.2.9{color}
{color:#59afe1} - weex-builder : v0.3.14{color}
{color:#59afe1} - weex-previewer : v1.4.6{color}
linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}rm -rf 
~/.xtoolkit/node_modules/weex-debugger{color}
linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm config set 
PUPPETEER_DOWNLOAD_HOST https://storage.googleapis.com.cnpmjs.org{color}
linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}weex config registry 
https://registry.npm.taobao.org/{color}
{color:#59afe1}Set registry = "https://registry.npm.taobao.org/"{color}
linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm config set registry 
https://registry.npm.taobao.org/{color}
linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm config get{color}
{color:#59afe1}; cli configs{color}
{color:#59afe1}metrics-registry = "https://registry.npm.taobao.org/"{color}
{color:#59afe1}scope = ""{color}
{color:#59afe1}user-agent = "npm/5.6.0 node/v8.9.4 linux x64"{color}

{color:#59afe1}; userconfig /home/linshaoyou/.npmrc{color}
{color:#59afe1}PUPPETEER_DOWNLOAD_HOST = 
"https://storage.googleapis.com.cnpmjs.org"{color}
{color:#59afe1}registry = "https://registry.npm.taobao.org/"{color}

{color:#59afe1}; node bin location = 
/home/linshaoyou/work/developerTool/Node/node-v8.9.4-linux-x64/bin/node{color}
{color:#59afe1}; cwd = /home/linshaoyou/.xtoolkit{color}
{color:#59afe1}; HOME = /home/linshaoyou{color}
{color:#59afe1}; "npm config ls -l" to show all defaults.{color}

linshaoyou@linshaoyou:~/.xtoolkit$ {color:#14892c}npm i weex-debugger 
--save{color}

{color:#d04437}> puppeteer@1.0.0 install 
/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/puppeteer{color}
{color:#d04437}> node install.js{color}

{color:#d04437}ERROR: Failed to download Chromium r526987! Set 
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.{color}
{color:#d04437}{ Error: read ECONNRESET{color}
{color:#d04437} at _errnoException (util.js:1022:11){color}
{color:#d04437} at TLSWrap.onread (net.js:615:25) code: 'ECONNRESET', errno: 
'ECONNRESET', syscall: 'read' }{color}
{color:#d04437}npm WARN enoent ENOENT: no such file or directory, open 
'/home/linshaoyou/.xtoolkit/package.json'{color}
{color:#d04437}npm WARN .xtoolkit No description{color}
{color:#d04437}npm WARN .xtoolkit No repository field.{color}
{color:#d04437}npm WARN .xtoolkit No README data{color}
{color:#d04437}npm WARN .xtoolkit No license field.{color}
{color:#d04437}npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 
(node_modules/weex-debugger/node_modules/fsevents):{color}
{color:#d04437}npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported 
platform for fsevents@1.1.2: wanted \{"os":"darwin","arch":"any"} (current: 
\{"os":"linux","arch":"x64"}){color}

{color:#d04437}npm ERR! code ELIFECYCLE{color}
{color:#d04437}npm ERR! errno 1{color}
{color:#d04437}npm ERR! puppeteer@1.0.0 install: `node install.js`{color}
{color:#d04437}npm ERR! Exit status 1{color}
{color:#d04437}npm ERR! {color}
{color:#d04437}npm ERR! Failed at the puppeteer@1.0.0 install script.{color}
{color:#d04437}npm ERR! This is probably not a problem with npm. There is 
likely additional logging output above.{color}

{color:#d04437}npm ERR! A complete log of this run can be found in:{color}
{color:#d04437}npm ERR! 
/home/linshaoyou/.npm/_logs/2018-02-23T03_15_44_311Z-debug.log{color}
linshaoyou@linshaoyou:~/.xtoolkit$

> 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, d.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)

Reply via email to