安装weex-devtool时npm报错

在终端中执行weex debug时,提示安装weex-devtool,输入y之后,安装过程中出现以下报错:

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>

请问该怎么解决呢?

阅读 2.9k
1 个回答
新手上路,请多包涵

同问,我现在还没解决

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题