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转去RN了。。。最后终于让我爬出来了。。。
这个报错貌似是windows系统独占
解决办法如下:
先全局安装weex-devtool
npm install -g weex-devtool
(官方给的命令是npm install -g weex-toolkit,不要理,就用weex-devtool)装好以后再次运行
weex debug
这个时候还会再次安装install weex-devtool
不要方 这次安装不会报错了
起码我是这样的 如果你们还是报错 那继续爬坑吧= =!