Eu acredito que eles acidentalmente trocaram os comandos aqui:
Next, run Install-Module as shown in the following command.
PS> Install-Module -Name AWSPowerShell.NetCore -AllowClobberIt is not necessary to run this command as Administrator, unless you want to install the AWS Tools for PowerShell Core for all users of a computer. To do this, run the following command in a PowerShell session that you have started with sudo pwsh:
PS> Install-Module -Scope CurrentUser -Name AWSPowerShell.NetCore -Force
-Scope CurrentUser instala isso apenas para seu usuário e não precisa de privilégios de administrador. Sem isso, instala o módulo para todos os usuários e precisa de privilégios. Consulte a a documentação Install-Modules :
When no scope is defined, or when the value of the
Scopeparameter isAllUsers, the module is installed to%systemdrive%:\Program Files\WindowsPowerShell\Modules. When the value ofScopeisCurrentUser, the module is installed to$home\Documents\WindowsPowerShell\Modules.
Para instalar sem sudo , use -Scope CurrentUser . Isso é como --user para pip install , por exemplo.