Reputation: 28682
I'm trying to install a package using npm. I want to install the latest master branch, not any of the releases. In my package.json I currently have:
'packageName': '0.4.x',
Is there a way to tell npm to pull the latest master branch when I run npm install packageName
rather than one of the repo's releases?
Something like 'packageName': 'master'
in my package.json (though this doesn't work).
Upvotes: 0
Views: 463
Reputation: 28682
npm install packageName
only lets you install things that are uploaded to npm.
What I needed to do was to fork the repo myself and create a new release in my own git repo. Then I can use:
npm install git+https://github.com/myGitAccount/my-repo.git
and it will install that latest release.
Upvotes: 2