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
Post a Comment