当我从 Windows 启动加载 cmd.exe 时,我默认进入命令提示符 c:\Users\gameoflife 目录。我是这台计算机的唯一人员和管理员。当我尝试安装 Chocolatey 时,出现此错误(下面包含屏幕截图)。
有人可以帮我弄清楚我可能缺少什么吗?非常感谢!
最佳答案
按照安装页面上的说明:
https://chocolatey.org/install#installing-chocolatey
通过命令提示符或 PowerShell 进行的 Chocolatey 初始安装需要管理 shell
。有关如何执行此操作的详细信息可以在此处找到:
https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/
可以对 Chocolatey 进行非管理安装,如果您希望这样做,我建议您仔细阅读文档的这一部分:
https://chocolatey.org/install#non-administrative-install
但是,请记住以下声明:
This option should be a last resort and is considered to be a more advanced scenario - most things you do on Windows require administrative rights, especially surrounding software management, so you are going to be limited even in packages you attempt to install.
关于meteor - 安装巧克力时出错。我应该怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47397944/