I was facing the below issue, pls help me out


#1

When i try to upgrade the appium to latest version, i was getting the below issue

npm WARN deprecated [email protected]: Not Ready For Production
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js

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

(node:2316) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/2019128-2316-4lznsy.3g4v2’
(node:2316) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2316) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[11:12:59] [Chromedriver Install] Installing Chromedriver version ‘2.45’ for platform ‘mac’ and architecture ‘64’
[11:12:59] [Chromedriver Install] Opening temp file to write ‘chromedriver_mac64’ to…
Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/2019128-2316-t7iw62.lm5dg’
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/infosys/.npm/_logs/2019-02-28T05_47_09_484Z-debug.log