1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > [typescript]请使用“以管理员身份运行”选项启动 Windows PowerShell。要更改当前

[typescript]请使用“以管理员身份运行”选项启动 Windows PowerShell。要更改当前

时间:2018-11-05 22:44:01

相关推荐

[typescript]请使用“以管理员身份运行”选项启动 Windows PowerShell。要更改当前

使用node安装完ts环境后,在cmd中使用tsc -V测试好使,显示了版本号,但是到vscode的终端报错如下:

PS D:\CodeField\basic\ts_vue3\01_TypeScript\自动编译> tsc -V)作用域的执行策略,请使用“以管理员身份运行”选项启动 Windows PowerShell。要更改当前用户的执行策略,请运行 "Set-ExecutionPolicy -Scope CurrentUser"。 所在位置 行:1 字符: 1+ set-ExecutionPolicy RemoteSigned+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo: PermissionDenied: (:) [Set-ExecutionPolicy], UnauthorizedAccessException+ FullyQualifiedErrorId : System.UnauthorizedAccessException,mands.SetExecutionPolicyCommand

解决:

打开powershell,以管理员方式输入set-ExecutionPolicy RemoteSigned回车输入A回车

问题解决

[typescript]请使用“以管理员身份运行”选项启动 Windows PowerShell。要更改当前用户的执行策略 请运行 “Set-ExecutionPolicy -Scope Curren

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。