出现下面问题,请大家帮忙看一下
npm ERR! TypeError: Object # has no method 'match'
npm ERR! at Object.scriptpath_ (D:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js
:138:23)
npm ERR! at Array.forEach (native)
npm ERR! at scriptpath (D:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:132:19)
npm ERR! at D:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:119:33
npm ERR! at Array.forEach (native)
npm ERR! at extras (D:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:118:21)
npm ERR! at parseJson (D:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:87:17)
npm ERR! at D:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:59:33
npm ERR! at fs.js:266:14
npm ERR! at D:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:103:5
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\Program Files\nodejs\\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js"
"install" "-g" "appium"
npm ERR! cwd D:\Users\zhangbowen614
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.23
npm ERR! type undefined_method
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\Users\zhangbowen614\npm-debug.log
npm ERR! not ok code 0ad-package-json\read-json.js