Unable to run npm install due to the following error on Mac OS:
/bin/sh: pkg-config: command not found
gyp: Call to 'pkg-config libzmq --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.6.0
The fix was:
brew install pkg-config
It might be worth noting that pkg-config is required in the Prereqs section of the readme.
Unable to run
npm install
due to the following error on Mac OS:The fix was:
It might be worth noting that
pkg-config
is required in thePrereqs
section of the readme.