简体   繁体   中英

NuGet: jQuery Mobile install error

I created an empty MVC 2 Empty Web Application, then use NuGet to upgrade my project to MVC 4. After that I use NuGet to install jQuery Mobile, but get errors. Here is the whole error messages

Attempting to resolve dependency 'jquery (≥ 1.6.4)'.
Installing 'jQuery 1.6.4'.
Successfully installed 'jQuery 1.6.4'.
Installing 'jquery.mobile 1.3.2'.
Successfully installed 'jquery.mobile 1.3.2'.
Adding 'jQuery 1.6.4' to MvcApplication1.
Successfully added 'jQuery 1.6.4' to MvcApplication1.
Executing script file 'C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MSCExpress\MvcApplication1\packages\jQuery.1.6.4\Tools\install.ps1'.
Executing script file 'C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MSCExpress\MvcApplication1\packages\jQuery.1.6.4\Tools\uninstall.ps1'.
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
Uninstalling 'jQuery 1.6.4'.
Successfully uninstalled 'jQuery 1.6.4'.
Install failed. Rolling back...
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.

I am using Visual Studio 2010. I have found this link closed to my situation and tried it but still get the error messages. Any help will be appreciated.

Adding jQuery mobile yourself is extremely easy

just follow the instructions on http://jquerymobile.com/download/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM