i'm setting project in visual studio based on angularjs , typescript , it's bit discouraging have deal yet package manager need install dependencies.
the issue have package managers require files containing dependencies located in particular place.
let's take npm example. place packages.json @ ./solutiondirectory/myapp.web/ when run npm install, enoent: no such file or directory. because cwd ./solutiondirectory
it works fine if i'm doing cd ./solutiondirectory/myapp.web , run npm install after that.
for bower able handle similar issue passing additional arguments like:
bower install --config.cwd=./solutiondirectory/myapp.web/app/lib --config.directory=vendor
this command gets bower.json ./solutiondirectory/myapp.web/app/lib , installs packages ./solutiondirectory/myapp.web/app/lib/vendor
is there way have same thing pass packages.json location npm before installs?
is there way pass typings.json location typings before installs? pass target directory location typings installed?
is same doable nuget?
for npm:
npm install <folder>
<folder>
path folder contains package.json
file.
for typings:
typings install [<name>=]<location>
<location>
path typings.json
for nuget:
nuget install packageid|pathtopackagesconfig [options]
pathtopackagesconfig
path packages.config
file.
so, answer question, yes it's possible specify path config file's location of these package managers.
Comments
Post a Comment