On Creating New Project in VS2013: Failed to Initialize the Powershell Host

Today, when I‘m creating a new project in VS2013 it gave me the following error message:

Install failed...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.

After I had a try, I found out the solution:

1. Run VS2013 as administrator

2. Open "Tools --> NuGet Package Manager --> Package Management Console"

3. Execute command "get-executionpolicy"

4. Execute command "set-executionpolicy unrestricted", if you‘re on 64 bit OS, you should also execute "start-job { set-executionpolicy unrestricted } -runas32 | wait-job | receive-job"

Restart VS, done!

时间: 2024-10-05 08:55:44

On Creating New Project in VS2013: Failed to Initialize the Powershell Host的相关文章

Error creating bean with name 'dataSource'...Failed to determine a suitable driver class

场景: 新建的spring-boot maven mybatis工程,运行时报以下异常 16:04:10.751 [main] ERROR org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframewor[email protected]489115ef] to prepare test instance [

解决android studio项目中Failded to sync Gradle project 'XXXX' Cause:failed to find target with hash string 'android-16'问题

之前在github上通过import module导入一个项目,结果报错,提示找不到sdk相应的版本xx,而我的compileSdkVersion明明写的是23不是xx,查了半天也没解决.最后只好下载了那个版本的sdk. 今天导入SlidingMenu的module的时候,又遇到了这个问题.  问题: Cause:failed to find target with hash string 'android-16' in: E:\sony\Android\sdk failed to find B

Eclipse “Invalid Project Description” when creating new project from existing source

1) File>Import>General>Existing Project into Workspace2) File>Import>Android>Existing Code into Workspace Eclipse "Invalid Project Description" when creating new project from existing source

【已解决】Failed to Initialize Windows Azure Storage Emulator解决方法

错误代码: Failed to Initialize Windows Azure Storage Emulator Added reservation for http://127.0.0.1:10000/ in user account Richard-PC\Richard.Added reservation for http://127.0.0.1:10001/ in user account Richard-PC\Richard.Added reservation for http://1

解决sever 2008中tomcat的报错 init Failed to initialize end point associated with ProtocolHandler ["http-nio-80"]

错误现象: 01-Aug-2017 14:59:50.140 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]01-Aug-2017 14:59:50.182 严重 [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated wit

端口占用的一种形式 Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8090"] java.net.BindException: Address already in use: JVM_Bind <null>:8090

严重: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8090"]java.net.BindException: Address already in use: JVM_Bind <null>:8090 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413) at org.apache.tomc

MySQL主从报错解决:Failed to initialize the master info structure

大清早收到一个MySQL的自定义语言告警 :replication interrupt,看来是主从同步报错了. 登陆MySQL,执行 show slave status \G 发现salve已经停止了,于是使用 start slave启动,结果有如下报错: 1 ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log

Failed to initialize the Common Language Runtime

今天在SQL Server 2008中执行存储过程的时候报以下错误: Msg 6513, Level 16, State 27, Procedure usp_QueryRealTimeRoomInfo, Line 173 Failed to initialize the Common Language Runtime (CLR) v2.0.50727 due to memory pressure. This is probably due to memory pressure in the Me

jenkins集成ansible注意事项Failed to connect to the host via ssh.

在集成jenkins和ansible实现自动化部署时,root用户下执行ansible命令时可以正常运行.由于是通过jenkins用户去执行ansible命令,而jenkins用户却报如下异常: XXXXXXX | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true