How to install pull request package?

Asked

Viewed 49 times

0

I’m looking to install an npm package ng2-table, but with a pull request that is not yet merged into master.
Is there any way I can add this pull request to my package.json, so that it installs this commit instead of the repository master?

  • You did the implementation on a branch of a Fork of yours, correct? You already tried: npm install git://github.com/meurepo.git#minhabranch --save ?

  • It wasn’t a Request of mine. I got a pull request in the repository of the component I’m using, in this case.

1 answer

0


To solve this problem, just take the following steps:

  1. Go to the Fork repository, in my case it was that
  2. Click to download and the button Download ZIP, right click and copy the link;
  3. In the package.json, replace the location where the version is located with the link;
  4. Replace . zip with .tar.gz

That was the case that worked for me, another alternative I saw was to erase the .zip and replace the archive of the url by tarball.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.