Error nvm install MAC

Go into the UI directory

cd openmrs-module-bahmniapps/ui

Install node dependencies (Installed into node_modules).

npm install

This keeps throwing the following error whatever I try:

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! jpegtran-bin@0.1.7 postinstall: node pre-build.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the jpegtran-bin@0.1.7 postinstall script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.