npm install username/ripository#branch(commit)

example 
npm install gulpjs/gulp#4.0
npm install gulpjs/gulp#7f5ac012315fca6a3ad8105b6f50e8143b237c94