The script you are referring to is a pre-publishing script that runs before the npm module is published to the npm registry. Check package.json # L9
Excerpt shown here.
"scripts": {
"test": "make test",
"prepublish": "make"
}
When you install it from github, there is no publishing step, so the script does not run.
github script, postinstall script cacheman ( , , ).
"scripts": {
"test": "make test",
"prepublish": "make",
"postinstall": "make"
}
examples npm.