Solucionado (ver solução)
Solucionado
(ver solução)
6
respostas

Não consigo instalar o chocolatey pelo cmd, nem pelo powersheel

Aparecem uns avisos em amarelo dizendo não está completo, que o arquivo não existe. O que posso fazer?

6 respostas

Boa Tarde, dei uma olhadinha no site deles e está o seguinte metodo de instação, espero que resolva sua dúvida :)

Installing Chocolatey
Chocolatey installs in seconds. You are just a few steps from running choco right now!

1. First, ensure that you are using an administrative shell - you can also install as a non-admin, check out Non-Administrative Installation.

2. Copy the text specific to your command shell - cmd.exe or powershell.exe.

3. Paste the copied text into your shell and press Enter.

4. Wait a few seconds for the command to complete.

5. If you don't see any errors, you are ready to use Chocolatey! Type choco or choco -? now.

Comando pelo CMD.EXE

@"%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"

Comando pelo PowerShell.exe

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Site para maiores dúvidas

https://chocolatey.org/install

Ainda não consigo recebo a seguinte resposta: ps: tentei atualizar o powershell pois pensei ter algo a ver com isto, mas também não deu. ps2: uso windows 7

insira seu código aqui

C:\Windows\system32>@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.ex e" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Obje ct System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" Getting latest version of the Chocolatey package for download. Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.8 . Extracting C:\Users\Kira\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.z ip to C:\Users\Kira\AppData\Local\Temp\chocolatey\chocInstall... Installing chocolatey on this machine Creating ChocolateyInstall as an environment variable (targeting 'Machine') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco. Restricting write permissions to Administrators We are setting up the Chocolatey package repository. The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName '.

Creating Chocolatey folders if they do not already exist.

WARNING: You can safely ignore errors related to missing log files when upgrading from a version of Chocolatey less than 0.9.9. 'Batch file could not be found' is also safe to ignore. 'The system cannot find the file specified' - also safe. AVISO: Not setting tab completion: Profile file does not exist at 'C:\Users\Kira\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'. Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Ensuring chocolatey commands are on the path Ensuring chocolatey.nupkg is in the lib folder

C:\Windows\system32>

Bom dia, que erro está retornando?

De acordo com o LOG que você postou, o choco foi instalado com sucesso...

Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Ensuring chocolatey commands are on the path Ensuring chocolatey.nupkg is in the lib folder

Está dizendo que já está pronto para usar, só rodar o comando dele

 " Run choco /? for a list of functions. "

ele não mostrava que o chocolatey estava instalado, mas eu fiz a instalação offline e deu certo. Muito obrigado, desculpe o incomodo.

Final feliz então!!

solução!

Só não esquece de marcar solucionado, se eu te dei um help da um helpzinho haha

Abraços, bons estudos =)