title: CommandNotFoundException in asp.net mvc 5 database migration
body: <p>I tried to run this command:</p>
  
  <pre><code>Enable-Migrations -ContextType ApplicationDbContext
  </code></pre>
  
  <p>And getting this exception:</p>
  
  <pre><code>Enable-Migrations : The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a 
  path was included, verify that the path is correct and try again.
  At line:1 char:1
  + Enable-Migrations -ContextType ApplicationDbContext
  + ~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>I am using vs 2015 community edition. Restarting and run it as administrator could not solve the issue. And if I try to run this command to reinstall Entity Framework:</p>
  
  <pre><code>Install-Package EntityFramework -IncludePrerelease
  </code></pre>
  
  <p>Getting this exception as well:</p>
  
  <pre><code>Install-Package : An error occurred while retrieving package metadata for 'Newtonsoft.Json.10.0.3' from source 'C:\Path\packages'.
  At line:1 char:1
  + Install-Package EntityFramework -IncludePrerelease
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
  </code></pre>
  
  <p>Please, Give me any solution. </p>