The problem drove me crazy, there is a package in npm database, but it has some bugs, which are already fixed in github, how could I make use of the fixed version(github version)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit:
You can install directly from the GitHub repository, even just using the GitHub username and the repository name:
npm install LearnBoost/socket.ioYou can also add a
<commit-ish>, specifying e.g. a commit hash or a version tag, like so:npm install LearnBoost/socket.io#1.7.xWithout a protocol, this will be interpreted as
git://github.com/LearnBoost/socket.io. You can also prefix the repo withgitlab:,gist:orbitbucket:, respectively. For more information, see Using git URLs as dependencies.You can install directly from a URL, example:
You can find the URL on Github under “Downloads” on any project page. Select the “Download as tar.gz” link.
Or you can install a tarball:
See npm install(1).
Edit:
I should mention that this works equally well in
package.jsonfiles. Specify the URL instead of the version in your dependencies, like so: