Windows 当我安装'chocolate'时,输入命令后不会发生任何事情
我在命令行中输入代码:Windows 当我安装'chocolate'时,输入命令后不会发生任何事情,windows,chocolatey,Windows,Chocolatey,我在命令行中输入代码: @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PA
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
结果。
我也面临同样的问题。然后,我使用PowerShell进行安装。 使用PowerShell方法-> 在管理命令提示符中输入这些代码->
>>powershell
>>Get-ExecutionPolicy
(如果受限,则设置ExecutionPolicy AllSigned)
如需更多参考,请访问此处
下图清楚地说明了您必须做的事情
这个问题可能会让你更高兴。
>>Set-ExecutionPolicy AllSigned
>>Get-ExecutionPolicy
>>Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))