Skip to content

Instantly share code, notes, and snippets.

@rluba
Last active August 29, 2015 14:16
Show Gist options
  • Save rluba/2e936f3e0e587715a52c to your computer and use it in GitHub Desktop.
Save rluba/2e936f3e0e587715a52c to your computer and use it in GitHub Desktop.
NPM: Git vs non-git dependencies
{
"name": "npmgit",
"version": "0.1.0",
"description": "Show that git dependencies are reinstalled on every `npm install.",
"dependencies": {
"bunyan": "^1.3.4",
"restify": "git+ssh://git@github.com:mcavage/node-restify.git#3.0.0"
}
}
@rluba
Copy link
Author

rluba commented Mar 11, 2015

When running npm install, normal dependencies (here: bunyan) are installed just once. But git dependencies (here: restify) are reinstalled whenever npm install is executed.

Notice that both depend on dtrace-provider but only restify's copy is recompiled every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment