When running npm install -g appium, installation fails with the following log:
npm install -g appium
npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /usr/loc