shama / napa

:wine_glass: A helper for installing stuff without a package.json with npm.
MIT License
412 stars 34 forks source link

Prevent duplicate install #24

Closed deitch closed 9 years ago

deitch commented 9 years ago

Is there a way to prevent napa from reinstalling packages every time it runs?

Let's assume my package.json looks like this:

"dependencies": {
    "express": "3.x"
},
"napa":{
  "angular":"http://some.com/path/to/angular.git"
}

Is there any way that we can have napa recognize that it has already installed this fileset and not reinstall it? Understandably, npm install has a versionizing system, which npm relies upon to determine what is installed and what is not, while napa has no central repo to hit and check published version numbers. Is there any alternate way of doing it here?

deitch commented 9 years ago

Awesome, thank you!