Last active
August 29, 2015 14:16
-
-
Save rluba/2e936f3e0e587715a52c to your computer and use it in GitHub Desktop.
NPM: Git vs non-git dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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://[email protected]:mcavage/node-restify.git#3.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running
npm install
, normal dependencies (here:bunyan
) are installed just once. But git dependencies (here:restify
) are reinstalled whenevernpm install
is executed.Notice that both depend on
dtrace-provider
but onlyrestify
's copy is recompiled every time.