Take the 2-minute tour ×

This question already has an answer here:

I have updated the jquery version 2.0 but i found that this is not compatible with ie7 and 8 now i want to revert to old version 1.9.0. When i try to install this with Nuget console it gives me error that already new version is installed.

install-package jquery -version 1.9.0
Successfully installed 'jQuery 1.9.0'.
Install failed. Rolling back...
Install-Package : Already referencing a newer version of 'jQuery'.
At line:1 char:16
+ install-package <<<<  jquery -version 1.9
 + FullyQualifiedErrorId :NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
share|improve this question

marked as duplicate by Jesse Webb, p.s.w.g, user568109, ean5533, madth3 Aug 3 '13 at 0:02


Downloading old version of NuGet package: stackoverflow.com/questions/5628689/… –  UGEEN Jun 14 '13 at 7:59
add comment

1 Answer

up vote 23 down vote accepted

Try uninstalling the 2.0 version first:

Uninstall-Package [yourpackage] -Force

Then reinstalling the older package:

install-package jquery -version 1.9.0

share|improve this answer
Well this answer - though duplicate - still helped me. Because the duplicate answer did NOT specify the '-Force' argument given here. As installing jQuery 1.9(.1) gave an error/warning I had jQuery 2.0(.3) already installed. And uninstalling 2.0(.3) gave a warning/error that other packages (like jQuery UI, jQuery Validation) were dependent on it. But deleting it using -Force, and then installing 1.9 WAS possible. –  Bart Aug 12 '13 at 8:41
add comment
