SHARE
TWEET

Untitled

a guest Jul 19th, 2011 175 Never
  1. As of version 0.3, it is recommended to run npm as root. This allows npm to change the user identifier to the nobody user prior to running any package build or test commands.
  2.  
  3. If you are not the root user, or if you are on a platform that does not support uid switching, then npm will not attempt to change the userid.
  4.  
  5. If you would like to ensure that npm always runs scripts as the "nobody" user, and have it fail if it cannot downgrade permissions, then set the following configuration param:
RAW Paste Data
Top