全新安装后'choco'命令在哪里?

时间:2023-01-04 20:38:21

I installed Chocolatey and it works fine in the command prompt (cmd.exe). But, I'm lazy and want to call it from PowerShell. But, the command choco is not recognized in PowerShell. I get something like

我安装了Chocolatey,它在命令提示符(cmd.exe)中运行正常。但是,我很懒,想从PowerShell中调用它。但是,PowerShell中无法识别命令choco。我得到类似的东西

CommandNotFoundException

1 个解决方案

#1


Damn, i find it: I had to restart the powershell after installing chocolatey.

该死的,我找到了:安装巧克力后我不得不重新启动powershell。

#1


Damn, i find it: I had to restart the powershell after installing chocolatey.

该死的,我找到了:安装巧克力后我不得不重新启动powershell。