madskristensen / PackageInstaller

A Visual Studio extension
Other
67 stars 15 forks source link

npm install in arbitrarily selected folder. #10

Closed radziksh closed 8 years ago

radziksh commented 8 years ago

Is it possible to add functionality to install rpm packages in arbitrary selected folder? For example add some checkbox, like: "use selected folder in solution explorer". I make widgets, and each of them isolated, because they use different versions of the same libraries. And each has its own package.json. And in this case I have to use the command line instead of the extension. I hope this feature will be useful not only to me.

madskristensen commented 8 years ago

npm doesn't allow for custom install directories. It will always dump the files into the _nodemodules folder. It's very unfortunate.

radziksh commented 8 years ago

When I said an arbitrary folder I meant folder with its own "node_modules" and "package.json" in it.

madskristensen commented 8 years ago

Ahh, got it. This extension cannot do that. The Task Runner Explorer in VS contains the logic about where to look for package.json files and it doesn't look in project sub folders

radziksh commented 8 years ago

Really very unfortunate. Ok then. Thanks for the quick response.