Visual Studio 2015 bower - not installed -


using empty template in visual studio 2015, following configuration fails install dependencies.

{   "name": "asp.net",   "private": true,   "dependencies": {     "bootstrap": "3.0.0",     "bootstrap-touch-carousel": "0.8.0",     "hammer.js": "2.0.4",     "jquery": "2.1.4",     "jquery-validation": "1.11.1",     "jquery-validation-unobtrusive": "3.2.2"   } } 

while same configuration web application sample template in asp.net completes successfully.

my colleagues running same problem.

is known issue? there work around? missing?

error in output window :

"c:\program files (x86)\microsoft visual studio 14.0\common7\ide\extensions\microsoft\web tools\external\bower.cmd" install --force-latest bower bootstrap#3.0.0        enotfound request https://bower.herokuapp.com/packages/bootstrap failed: getaddrinfo enotfound 

so got error tinkering around configs again.

ecmderr failed execute "git ls-remote --tags --heads https://github.com/twbs/bootstrap.git", exit code of #128

i ran similar error in vs 2015 rtm (not rc). fixed me:

  1. install git tools (if not installed) http://git-scm.com/download/win
  2. in command line enter following command(or git bash if did not add git path): git config --global url."http://".insteadof git://
  3. in vs menu tools > options.. > projects , solutions > external web tools
  4. uncheck $(devenvdir)\extensions\microsoft\web tools\external\git
  5. add c:\program files (x86)\git\bin

hope helps.

note: experienced on mvc 5 web app, not new preview template using gulp/bower/npm tooling.

update 1 although not duplicate scenario error messages similar. wonder if override done in web application template somewhere? find if thats case. vs 2015 + bower: not work behind firewall

update 2 tried in empty project after above changes: bower bootstrap#3.0.0 not-cached git://github.com/twbs/bootstrap.git#3.0.0 bower bootstrap#3.0.0 resolve git://github.com/twbs/bootstrap.git#3.0.0


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -