How can i install npm module from github and build it?

Viewed 1798

There are a lot of github repositories with node modules. Some of them published as NPM package and i can install it via npm install <module>. And sometimes github contains only sources, and in package.json i can see "prepublish": "npm run build" and to NPM gets the bundles; Also i have possibility to get module from github repository (npm install <project>/<resository>), but by default to node_modules gets sources and then i have to build it manually (for ex: npm run build). There is any option to get sources from Github and then build it immediately?

Thanks!

1 Answers
Related