Depend on a branch or tag using a git URL in a package.json?

前端 未结 5 1112
眼角桃花
眼角桃花 2020-11-29 15:49

Say I\'ve forked a node module with a bugfix and I want to use my fixed version, on a feature branch of course, until the bugfix is merged and released.

How would I

5条回答
  •  情歌与酒
    2020-11-29 16:25

    From the npm docs:

    git://github.com//.git#
    
    git://github.com//.git#feature\/
    

    As of NPM version 1.1.65, you can do this:

    /#
    

提交回复
热议问题