Upgrade Appium Client to latest appium version

$ sudo ./reset.sh --dev --verbose
Password:

  • Determining platform
  • Platform is mac
    ---- Resetting / Initializing Appium ----
  • Dev mode is on, will download/build test apps
    RESETTING NPM
  • Installing new or updated NPM modules (including devDeps)
    npm WARN package.json [email protected] No license field.
    npm WARN deprecated [email protected]: This package has been discontinued. socks-client will be taking its place.
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/appium-adb/-/appium-adb-1.7.5.tgz
    npm ERR! registry error parsing json
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/es6-promise/-/es6-promise-2.3.0.tgz
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/express/-/express-4.11.2.tgz
    npm ERR! registry error parsing json
    npm ERR! registry error parsing json
    npm ERR! registry error parsing json
    npm ERR! registry error parsing json
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/date-utils/-/date-utils-1.2.17.tgz
    npm ERR! registry error parsing json
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/appium-atoms/-/appium-atoms-0.0.5.tgz
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/swig/-/swig-1.4.2.tgz
    npm ERR! registry error parsing json
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/appium-instruments/-/appium-instruments-2.0.6.tgz
    npm ERR! tar.unpack untar error /tmp/npm-1084-8b292b59/registry.npmjs.org/appium-uiauto/-/appium-uiauto-1.10.10.tgz
    npm ERR! Darwin 15.0.0
    npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “.”
    npm ERR! node v4.1.2
    npm ERR! npm v2.14.4

npm ERR! unexpected eof
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /Users/chethanshetty/Desktop/NewAppium/appium/npm-debug.log
---- FAILURE: reset.sh exited with status 1 ----