Skip to content

Instantly share code, notes, and snippets.

@yashprit
Last active March 6, 2018 17:21
Show Gist options
  • Save yashprit/6224c914517991edca83 to your computer and use it in GitHub Desktop.
Save yashprit/6224c914517991edca83 to your computer and use it in GitHub Desktop.

When installing gulp:

1.-npm install gulp -g You need to unlock permissions in your home directory

  1. sudo chown -R `whoami` ~/.npm You also need write permissions to the node_modules directory, like Xilo says, so if it still isn't working, try:

  2. sudo chown -R `whoami` /usr/local/lib/node_modules If you are still seeing errors, you may also need to correct /usr/local permissions:

sudo chown -R `whoami` /usr/local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment