Skip to content

Instantly share code, notes, and snippets.

@viztastic
Last active December 17, 2016 19:37
Show Gist options
  • Save viztastic/c31f8d45d0aaaf12bd0e25057e375088 to your computer and use it in GitHub Desktop.
Save viztastic/c31f8d45d0aaaf12bd0e25057e375088 to your computer and use it in GitHub Desktop.
Addressing EACCSS issue

Node wasn't letting me install new modules throwing at me an EACCESS: permission denied error every time.

This did it, it can work in other use cases as well, this one lets you install global packages, but you can change the directory to whichever:

$ sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}

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