Search code examples
node.jsgithubntwitter

How to manage a fixed-yet-not-pulled version of 3rd party lib in node?


I'm using nTwitter to access twitter api using node. However, there is a bug in the search utility, and someone already forked and fixed it, but it wasn't pulled yet.

How can I use the fixed version s.t all my team will have the fixed version (meaning, just fixing it locally won't do the trick), but still use it as an npm module? can it be done at all?


Solution

  • Install that commit like this:

    npm install git://github.com/AvianFlu/ntwitter#e496bc07b9d0138f65902a43bc267796ab1a74d1
    

    Or install using package.json:

    {
      ....
      "dependencies": {
        ....
        "ntwitter" : "git://github.com/AvianFlu/ntwitter#e496bc07b9d0138f65902a43bc267796ab1a74d1"
      }
    }