简体   繁体   English

NuGet:jQuery Mobile安装错误

[英]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. 我创建了一个空的MVC 2空Web应用程序,然后使用NuGet将我的项目升级到MVC4。此后,我使用NuGet安装jQuery Mobile,但出现错误。 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. 我正在使用Visual Studio2010。我发现此链接不适合我的情况,并尝试了该链接 ,但仍收到错误消息。 Any help will be appreciated. 任何帮助将不胜感激。

Adding jQuery mobile yourself is extremely easy 自己添加jQuery mobile非常容易

just follow the instructions on http://jquerymobile.com/download/ 只需按照http://jquerymobile.com/download/上的说明进行操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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