Unable to install appium

I used the npm tool to install new appium version & this is the error I’m receiving.

npm -g install appium
/Users/local/.npm-packages/bin/appium → /Users/local/.npm-packages/lib/node_modules/appium/build/lib/main.js

[email protected] install /Users/local/.npm-packages/lib/node_modules/appium/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

[sqlite3] Success: “/Users/local/.npm-packages/lib/node_modules/appium/node_modules/sqlite3/lib/binding/node-v51-darwin-x64/node_sqlite3.node” is installed via remote

[email protected] install /Users/local/.npm-packages/lib/node_modules/appium/node_modules/appium-chromedriver
node install-npm.js

info Chromedriver Install Installing Chromedriver version ‘2.25’ for platform ‘mac’ and architecture ‘64’
info Chromedriver Install Opening temp file to write chromedriver_mac64 to…
info Chromedriver Install Downloading https://chromedriver.storage.googleapis.com/2.25/chromedriver_mac64.zip
RequestError: Error: unable to get local issuer certificate
at new RequestError (/Users/local/.npm-packages/lib/node_modules/appium/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback [as _callback] (/Users/local/.npm-packages/lib/node_modules/appium/node_modules/request-promise/lib/rp.js:60:32)
at self.callback (/Users/local/.npm-packages/lib/node_modules/appium/node_modules/request/request.js:186:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/Users/local/.npm-packages/lib/node_modules/appium/node_modules/request/request.js:845:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
└── (empty)

npm ERR! Darwin 16.0.0
npm ERR! argv “/usr/local/Cellar/node/7.2.0/bin/node” “/Users/local/.npm-packages/bin/npm” “-g” “install” “appium”
npm ERR! node v7.2.0
npm ERR! npm v3.10.10

npm ERR! [email protected] install: node install-npm.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script ‘node install-npm.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-chromedriver
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/local/npm-debug.log
npm ERR! code 1

Can someone help me out of this?

@harikrishnaburma What version of node.js and npm are you using?

@Blinkk node 7.2.0
npm 3.10.10

Hm, I am using node v7.0.0 and npm v3.10.9 and have no issues. Can you try reverting back to these versions and see if you still see the problem?