windows powershell报错
在这里插入图片描述
报错截图
**加粗样式
**
PS C:\WINDOWS\system32> choco install mkcert
choco : 无法将“choco”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正
确,然后再试一次。
所在位置 行:1 字符: 1
+choco install mkcert
+
+CategoryInfo : ObjectNotFound: (choco:String) [], CommandNotFoundException
+FullyQualifiedErrorId : CommandNotFoundException

使用命令 并输入 y

 set-executionpolicy remotesigned

继续执行

iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

我们发现就可以正常下载了
在这里插入图片描述

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐