Skip to content

Instantly share code, notes, and snippets.

@aws-scripting-guy
Last active May 21, 2017 19:49
Show Gist options
  • Save aws-scripting-guy/8cc35c075da0ac8255efb3e8e9fc5b41 to your computer and use it in GitHub Desktop.
Save aws-scripting-guy/8cc35c075da0ac8255efb3e8e9fc5b41 to your computer and use it in GitHub Desktop.
npm-setup.md

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment