Skip to content

Instantly share code, notes, and snippets.

@nemisj
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemisj/e27c942439863dfb4375 to your computer and use it in GitHub Desktop.
Save nemisj/e27c942439863dfb4375 to your computer and use it in GitHub Desktop.
{
"scripts": {
"postinstall": "ppid=$(ps -p ${1:-$$} -o ppid=;); ppid=$(echo ${ppid}|tr -d '[[:space:]]'); if [ -z ${npm_config_tmp} ]; then npm_config_tmp=/tmp; fi; rm -rf \"${npm_config_tmp}\"/npm-${ppid}*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment