I have a solution with several MVC6 (asp.net 5) projects. Each project uses conversation and npm for packages. Bower has normalize-css and jquery.
9 out of 10 times. I run the solution, it crashes during one of the phases of the mvc project initialization. If I debug an error, I get the following error.
An unhandled exception of type 'Newtonsoft.Json.JsonSerializationException' occurred in mscorlib.dll Additional information: Unexpected end when deserializing object. Path 'dependencies.jquery.pkgMeta.devDependencies', line 43, position 1.
If I remove jquery from the bauer dependencies and leave only normalize-css, I get:
An unhandled exception of type 'Newtonsoft.Json.JsonSerializationException' occurred in mscorlib.dll Additional information: Unexpected end when deserializing object. Path 'dependencies.normalize-css.pkgMeta._release', line 39, position 1.
I removed all the bower packages and the problem is fixed, but I obviously still need the packages, so adding jquery or another package fails again.
I am using Visual Studio 2015 Enterprise.
edit for bower.json:
{ "name": "ASP.NET", "private": true, "dependencies": { "jquery": "2.1.4", "normalize-css": "3.0.3" } }
user2713516
source share