Package Management with NPM: Examples and Common Use Cases
Last updated:Table of Contents
- Install an NPM package from github
- Install specific version from NPM package on github
- Add NPM package directly from github to package.json
WIP Alert This is a work in progress. Current information is correct but more content will probably be added in the future.
Install an NPM package from github
$ npm install --save git+ssh://git@github.com/org-name/package-name.git
Install specific version from NPM package on github
$ npm install --save git+ssh://git@github.com/org-name/package-name.git#3.10.0
Add NPM package directly from github to package.json
{
"name": "my-awesome-app",
"version": "0.7.0",
"license": "MIT",
"dependencies": {
"string-replace-loader": "github:gdi2290/string-replace-loader"
// ... other dependencies
}
}