[jira] [Comment Edited] (WEEX-214) weex debug error,AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install"

2018-02-11 Thread linshao...@meizu.com (JIRA)

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

linshao...@meizu.com edited comment on WEEX-214 at 2/11/18 8:29 AM:


这个可以安装好weex-debugger,不过二维码还是显示不了,以下log。

 


was (Author: linshao...@meizu.com):
这个可以安装好weex-debugger,不过二维码还是显示不了,以下log。

!2018-02-11 16:26:34屏幕截图.png!

> 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:#FF}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:#FF}2.set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1后重新执行weex 
> debug,报下面的错误{color}
> AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm 
> install"
>  
> {color:#FF}3.自动打开的浏览器,看不到二维码如附件所示{color}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (WEEX-214) weex debug error,AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install"

2018-02-10 Thread linshao...@meizu.com (JIRA)

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

linshao...@meizu.com edited comment on WEEX-214 at 2/11/18 7:25 AM:


好的,在另外一个终端,一条一条执行以上的命令,还是无法生效。那辛苦确认问题后,提供下解决方案~

我这边执行  ping 172.217.160.112,也是无法ping通的。

不过 ping storage.googleapis.com.cnpmjs.org ,这个是可以ping得通的。

 


was (Author: linshao...@meizu.com):
好的,在另外一个终端,一条一条执行以上的命令,还是无法生效。那辛苦确认问题后,提供下解决方案~

我这边执行  ping 172.217.160.112,也是无法ping通的。

 

> 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:#FF}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:#FF}2.set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1后重新执行weex 
> debug,报下面的错误{color}
> AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm 
> install"
>  
> {color:#FF}3.自动打开的浏览器,看不到二维码如附件所示{color}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (WEEX-214) weex debug error,AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install"

2018-02-10 Thread linshao...@meizu.com (JIRA)

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

linshao...@meizu.com edited comment on WEEX-214 at 2/11/18 4:59 AM:


[~erhaa19]  删除~/.xtoolkit/node_modules/weex-debugger后,weex 
debug还是不能安装weex-debugger。以下是我这边的操作,麻烦帮忙看看是什么问题?而且二维码也是无法加载出来。

linshaoyou@linshaoyou:/home/linshaoyou/code$ rm -rf 
~/.xtoolkit/node_modules/weex-debugger
 linshaoyou@linshaoyou:/home/linshaoyou/code$ npm config set 
PUPPETEER_DOWNLOAD_HOST 
[https://storage.googleapis.com.cnpmjs.org|https://storage.googleapis.com.cnpmjs.org/]
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex config registry 
[https://registry.npm.taobao.org/]
 Set registry = "https://registry.npm.taobao.org/;
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex debug
 This command need to install weex-debugger. Installing...
 {color:#ff}ERROR: Failed to download Chromium r526987! Set 
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.{color}
 {color:#ff}{ Error: connect ETIMEDOUT 172.217.16.80:443{color}
 {color:#ff} at Object._errnoException (util.js:1022:11){color}
 {color:#ff} at _exceptionWithHostPort (util.js:1044:20){color}
 {color:#ff} at TCPConnectWrap.afterConnect [as oncomplete] 
(net.js:1182:14){color}
 {color:#ff} code: 'ETIMEDOUT',{color}
 {color:#ff} errno: 'ETIMEDOUT',{color}
 {color:#ff} syscall: 'connect',{color}
 {color:#ff} address: '172.217.160.80',{color}
 {color:#ff} port: 443 }{color}
 {color:#ff}npm ERR! code ELIFECYCLE{color}
 {color:#ff}npm ERR! errno 1{color}
 {color:#ff}npm ERR! puppeteer@1.0.0 install: `node install.js`{color}
 {color:#ff}npm ERR! Exit status 1{color}
 {color:#ff}npm ERR! {color}
 {color:#ff}npm ERR! Failed at the puppeteer@1.0.0 install script.{color}
 {color:#ff}npm ERR! This is probably not a problem with npm. There is 
likely additional logging output above.{color}

{color:#ff}npm ERR! A complete log of this run can be found in:{color}
 {color:#ff}npm ERR! 
/home/linshaoyou/.npm/_logs/2018-02-11T04_32_56_811Z-debug.log{color}
 {color:#ff}12:32:57 : Error: fatal error!{color}
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex update weex-debugger
 ? update package "weex-debugger" now? Yes

{color:#ff}//这里卡住了10mins,没有结果,先中断 {color}
 {color:#ff}^C{color}
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex update weex-debugger
 ? update package "weex-debugger" now? Yes
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex debug

┌┐
 │ │
 │ Start debugger server! │
 │ │
 │ - Websocket Address For Native: ws://172.18.3.158:8088/debugProxy/native │
 │ - Debug Server: [http://172.18.3.158:8088|http://172.18.34.158:8088/] │
 │ │
 │ │
 
└┘

12:50:32 : Launching Dev Tools...
 12:50:32 : Starting inspector on port 9222
 {color:#ff}12:50:32 : AssertionError [ERR_ASSERTION]: Chromium revision is 
not downloaded. Run "yarn install" or "npm install"{color}
 ^Clinshaoyou@linshaoyou:/home/linshaoyou/code$ weex debug --verbose

┌┐
 │ │
 │ Start debugger server! │
 │ │
 │ - Websocket Address For Native: ws://172.18.3.158:8088/debugProxy/native │
 │ - Debug Server: [http://172.18.3.158:8088|http://172.18.34.158:8088/] │
 │ │
 │ │
 
└┘

12:51:20 : Launching Dev Tools...
 12:51:20 : Starting inspector on port 9222
 {color:#ff}12:51:20 : Error: AssertionError [ERR_ASSERTION]: Chromium 
revision is not downloaded. Run "yarn install" or "npm install"{color}
 {color:#ff} at Console.assert (console.js:191:23){color}
 {color:#ff} at Function.launch 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/puppeteer/lib/Launcher.js:95:15){color}
 {color:#ff} at {color}
 {color:#ff}Error: No such file or directory{color}
 {color:#ff} at Object.serveStatic 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/koa-serve-static/index.js:37:19){color}
 {color:#ff} at serveStatic.next (){color}
 {color:#ff} at Object.dispatch 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/koa-router/lib/router.js:331:7){color}
 {color:#ff} at dispatch.next (){color}
 {color:#ff} at onFulfilled 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/co/index.js:65:19){color}
 {color:#ff} at {color}
 {color:#ff}^CCloased headless{color}
 linshaoyou@linshaoyou:/home/linshaoyou/code$


was (Author: linshao...@meizu.com):
[~erhaa19]  删除~/.xtoolkit/node_modules/weex-debugger后,weex 
debug还是不能安装weex-debugger。以下是我这边的操作,麻烦帮忙看看是什么问题?而且二维码也是无法加载出来。


[jira] [Comment Edited] (WEEX-214) weex debug error,AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install"

2018-02-10 Thread linshao...@meizu.com (JIRA)

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

linshao...@meizu.com edited comment on WEEX-214 at 2/11/18 4:56 AM:


[~erhaa19]  删除~/.xtoolkit/node_modules/weex-debugger后,weex 
debug还是不能安装weex-debugger。以下是我这边的操作,麻烦帮忙看看是什么问题?而且二维码也是无法加载出来。

linshaoyou@linshaoyou:/home/linshaoyou/code$ rm -rf 
~/.xtoolkit/node_modules/weex-debugger
 linshaoyou@linshaoyou:/home/linshaoyou/code$ npm config set 
PUPPETEER_DOWNLOAD_HOST 
[https://storage.googleapis.com.cnpmjs.org|https://storage.googleapis.com.cnpmjs.org/]
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex config registry 
[https://registry.npm.taobao.org/]
 Set registry = "https://registry.npm.taobao.org/;
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex debug
 This command need to install weex-debugger. Installing...
 {color:#ff}ERROR: Failed to download Chromium r526987! Set 
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.{color}
 {color:#ff}{ Error: connect ETIMEDOUT 172.217.160.80:443{color}
 {color:#ff} at Object._errnoException (util.js:1022:11){color}
 {color:#ff} at _exceptionWithHostPort (util.js:1044:20){color}
 {color:#ff} at TCPConnectWrap.afterConnect [as oncomplete] 
(net.js:1182:14){color}
 {color:#ff} code: 'ETIMEDOUT',{color}
 {color:#ff} errno: 'ETIMEDOUT',{color}
 {color:#ff} syscall: 'connect',{color}
 {color:#ff} address: '172.217.160.80',{color}
 {color:#ff} port: 443 }{color}
 {color:#ff}npm ERR! code ELIFECYCLE{color}
 {color:#ff}npm ERR! errno 1{color}
 {color:#ff}npm ERR! puppeteer@1.0.0 install: `node install.js`{color}
 {color:#ff}npm ERR! Exit status 1{color}
 {color:#ff}npm ERR! {color}
 {color:#ff}npm ERR! Failed at the puppeteer@1.0.0 install script.{color}
 {color:#ff}npm ERR! This is probably not a problem with npm. There is 
likely additional logging output above.{color}

{color:#ff}npm ERR! A complete log of this run can be found in:{color}
 {color:#ff}npm ERR! 
/home/linshaoyou/.npm/_logs/2018-02-11T04_32_56_811Z-debug.log{color}
 {color:#ff}12:32:57 : Error: fatal error!{color}
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex update weex-debugger
 ? update package "weex-debugger" now? Yes

{color:#ff}//这里卡住了10mins,没有结果,先中断 {color}
 {color:#ff}^C{color}
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex update weex-debugger
 ? update package "weex-debugger" now? Yes
 linshaoyou@linshaoyou:/home/linshaoyou/code$ weex debug

┌┐
 │ │
 │ Start debugger server! │
 │ │
 │ - Websocket Address For Native: ws://172.18.34.158:8088/debugProxy/native │
 │ - Debug Server: [http://172.18.34.158:8088|http://172.18.34.158:8088/] │
 │ │
 │ │
 
└┘

12:50:32 : Launching Dev Tools...
 12:50:32 : Starting inspector on port 9222
 {color:#ff}12:50:32 : AssertionError [ERR_ASSERTION]: Chromium revision is 
not downloaded. Run "yarn install" or "npm install"{color}
 ^Clinshaoyou@linshaoyou:/home/linshaoyou/code$ weex debug --verbose

┌┐
 │ │
 │ Start debugger server! │
 │ │
 │ - Websocket Address For Native: ws://172.18.34.158:8088/debugProxy/native │
 │ - Debug Server: [http://172.18.34.158:8088|http://172.18.34.158:8088/] │
 │ │
 │ │
 
└┘

12:51:20 : Launching Dev Tools...
 12:51:20 : Starting inspector on port 9222
 {color:#ff}12:51:20 : Error: AssertionError [ERR_ASSERTION]: Chromium 
revision is not downloaded. Run "yarn install" or "npm install"{color}
 {color:#ff} at Console.assert (console.js:191:23){color}
 {color:#ff} at Function.launch 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/puppeteer/lib/Launcher.js:95:15){color}
 {color:#ff} at {color}
 {color:#ff}Error: No such file or directory{color}
 {color:#ff} at Object.serveStatic 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/koa-serve-static/index.js:37:19){color}
 {color:#ff} at serveStatic.next (){color}
 {color:#ff} at Object.dispatch 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/koa-router/lib/router.js:331:7){color}
 {color:#ff} at dispatch.next (){color}
 {color:#ff} at onFulfilled 
(/home/linshaoyou/.xtoolkit/node_modules/weex-debugger/node_modules/co/index.js:65:19){color}
 {color:#ff} at {color}
 {color:#ff}^CCloased headless{color}
 linshaoyou@linshaoyou:/home/linshaoyou/code$


was (Author: linshao...@meizu.com):
[~erhaa19]  删除~/.xtoolkit/node_modules/weex-debugger后,weex 
debug还是不能安装weex-debugger。以下是我这边的操作,麻烦帮忙看看是什么问题?

linshaoyou@linshaoyou:/home/linshaoyou/code$