Package Management with NPM: Examples and Common Use Cases

Last updated:

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 a specific version from an NPM package on github

$ npm install --save git+ssh://git@github.com/org-name/package-name.git#3.10.0

Add an 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
    }
}

Dialogue & Discussion