shama / napa

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

Installing with napa #21

Closed JoelV closed 10 years ago

JoelV commented 10 years ago

When I add more modules with napa, napa installs whatever I'm trying to add, but deletes whats in the directories the things I have previously installed with napa

For example package.json:

{
  "scripts": {
    "install": "napa"
  },
  "napa": {
    "foo": "username/repo"
  }
}

then i run npm install and foo is installed under node_modules directory.

then i change package.json to

{
  "scripts": {
    "install": "napa"
  },
  "napa": {
    "foo": "username/foo",
    "bar": "username/bar"
  }
}

then run npm install, napa will install bar in the node_modules directory, but /node_modules/foo will be empty.

Am I doing something wrong?

JoelV commented 10 years ago

Never mind I started specifying version tags and branches ie

{
  "scripts": {
    "install": "napa"
  },
  "napa": {
    "foo": "username/foo#v0.0.0",
    "bar": "username/bar#0.0.0"
  }
}

and now works great