Simplest way to enable global node modules on MacOS Get default npm modules path $ npm config list | grep prefix prefix = "/usr/local/Cellar/node/7.10.0/libexec/npm" Update PATH with default modules dir export PATH=/usr/local/Cellar/node/7.10.0/libexec/npm/bin:$PATH