How to use Bower (installed from nuget) in Visual Studio?

Justin XL picture Justin XL · Oct 23, 2014 · Viewed 34.1k times · Source

I am trying to use bower inside Visual Studio 2013.

First I installed bower (not bower.js) via nuget's Package Manager Console.

Then I thought I could simply type

PM> bower init

inside the PMC to generate the bower.json.

But then it gave me this error.

bower : The term 'bower' is not recognized...

PS. The path of the PM> is pointing to C:\MyWebProject\MyWebProject\.bin.

What am I missing here??

Answer

Srinivas Paila picture Srinivas Paila · Oct 23, 2014
  1. Open the command prompt
  2. Navigate to web project folder
  3. Run bower init
  4. You should have bower.json created by answering all answers on the cmd prompt.