Custom paths for package managers like Nuget/npm/bower/typings
<p>I'm setting up a project in Visual Studio based on AngularJS and Typescript and it's a bit discouraging that I have to deal with yet another package manager as soon as I need to install dependencies.</p>

<p>The issue I have is that package managers require files containing dependencies to be located in a particular place.</p>

<p>Let's take npm for example.
I place packages.json at <strong>./SolutionDirectory/MyApp.Web/</strong>
But when I run <strong>npm install</strong>, I just get <strong>ENOENT: No such file or directory.</strong> because cwd is ./SolutionDirectory</p>

<p>It works fine if I'm doing cd ./SolutionDirectory/MyApp.Web and run npm install after that.</p>

<p>For bower I was able to handle similar issue by just passing additional arguments like:</p>

<p><strong>bower install --config.cwd=./SolutionDirectory/MyApp.Web/app/lib --config.directory=vendor</strong></p>

<p>This command just gets bower.json from ./SolutionDirectory/MyApp.Web/app/lib and installs packages to ./SolutionDirectory/MyApp.Web/app/lib/vendor</p>

<ol>
<li><p>Is there a way to have same thing to pass packages.json location to npm before it installs?</p></li>
<li><p>Is there a way to pass typings.json location to typings before it installs? to pass target directory location for typings installed?</p></li>
<li><p>Is the same doable for Nuget?</p></li>
</ol>