鍍金池/ 問答/HTML/ 使用weex debug報錯,安裝不了weex-devtool

使用weex debug報錯,安裝不了weex-devtool

This command need to install weex-devtool. Installing...
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\juju\AppData\Roaming\npm-cache\_logs\2017-12-25T15_40_08_433Z-debug.log
Error: fatal error!
    at installer.(anonymous function).then (C:\Users\juju\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules\xtoolkit\src\Command.js:45:19)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:678:11)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
回答
編輯回答
慢半拍

因為這個坑幾度想棄坑weex轉(zhuǎn)去RN了。。。最后終于讓我爬出來了。。。
這個報錯貌似是windows系統(tǒng)獨占
解決辦法如下:
先全局安裝weex-devtool
npm install -g weex-devtool(官方給的命令是npm install -g weex-toolkit,不要理,就用weex-devtool)
裝好以后再次運行weex debug
這個時候還會再次安裝install weex-devtool
不要方 這次安裝不會報錯了
起碼我是這樣的 如果你們還是報錯 那繼續(xù)爬坑吧= =!

2017年9月15日 22:55
編輯回答
小曖昧

我也是這個問題,請問解決了嗎

2017年5月20日 14:51
編輯回答
蝶戀花

樓主,你的node版本和npm 版本是多少?

提示錯誤是: npm ERR! This is an error with npm itself.

2017年9月21日 00:16
編輯回答
殘淚

樓主,爬出來沒有啊

2017年2月2日 19:17
編輯回答
拼未來

試試npm run debug

2017年11月29日 17:39
編輯回答
柒槿年

這個問題是怎么解決?

2017年5月28日 08:39