Posts

Showing posts from November, 2020

Fixing the appium installation with NPM

Problem Statement: npm install -g appium returns the below     npm install -g appium  npm ERR! code ENOENT  npm ERR! syscall chmod  npm ERR! path /usr/local/lib/node_modules/appium/build/lib/main.js  npm ERR! errno -2 Solution The directory npm is trying to modify is not owned by the user that is executing the command. Grant the permissions to the user executing the command and the issue should be resolved.  Here are the commands:  sudo chown -R `whoami` ~/.npm sudo chown -R `whoami` /usr/local/lib/node_module Uninstall the appium npm uninstall -g appium Re-install appium npm install -g appium