鍍金池/ 問答/Java  iOS  Android  HTML/ 安裝weex-devtool時npm報錯

安裝weex-devtool時npm報錯

在終端中執(zhí)行weex debug時,提示安裝weex-devtool,輸入y之后,安裝過程中出現(xiàn)以下報錯:

npm ERR! Unexpected token ( in JSON at position 0 while parsing near '(function(){try{var ...'

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hbs/.npm/_logs/2017-10-11T15_32_12_038Z-debug.log
Error: fatal error!

at installer.(anonymous function).then (/usr/local/lib/node_modules/weex-toolkit/node_modules/.0.2.9-beta1@xtoolkit/src/Command.js:49:31)
at <anonymous>

請問該怎么解決呢?

回答
編輯回答
瘋浪

同問,我現(xiàn)在還沒解決

2018年5月31日 09:17