Skip to content

Instantly share code, notes, and snippets.

@sdierauf
Created August 26, 2014 17:59
Show Gist options
  • Save sdierauf/f511aa9194fcdfb91ba5 to your computer and use it in GitHub Desktop.
Save sdierauf/f511aa9194fcdfb91ba5 to your computer and use it in GitHub Desktop.
By my analysis, when npm is started sudo root, it decides that it should install into /root, but then when it downgrades the user pemission to run node-gyp, node-gyp can't create its ~/.node-gyp folder for building. If npm is going to downgrade, then it should install into the user's home folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment