node.js - Can I install an NPM module from GitHub from a certain branch or tag? -


when have now:

"dependencies": { "mymodule": "owner/repo" }

or

"dependencies": { "mymodule": "git+ssh://git@github.com/owner/repo.git" }

npm installs module github master branch.

is there way tell npm install tag or head of branch other master?

https://docs.npmjs.com/files/package.json#git-urls-as-dependencies

"dependencies": {   "mymodule": "git+ssh://git@github.com/owner/repo.git#commit-ish" } 

the commit-ish can tag, sha, or branch can supplied argument git checkout. default master.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -