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

chocolatey não instala

**Getting latest version of the Chocolatey package for download.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.11.
Extracting C:\Users\mayco\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\mayco\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\mayco\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**

aparece essas mensagens que encaminho acima, já tentei executando o prompt como administrador todas as vezes, repetindo cada opção várias vezes e apresentaram a mesma mensagem acima. Quando escrevo "choco" no prompt não aparece a versão. Quando tento realizar alguma instalação por meio do "choco install... " também acontece erros . Desde já agradeço!

4 respostas

Consegue verificar se o chocolatey está presente em seu PATH?

usa o CMD comum, não o PowerShell que dá certo =)

quando dou um "echo %PATH%" apresenta:

C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\mayco\AppData\Local\Microsoft\WindowsApps;C:\Users\mayco\bin;;C:\Program Files\Java\jdk-10.0.1\bin;C:\ProgramData\chocolatey\bin;C:\ProgramData\chocolatey\bin;C:\Users\mayco\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

quando dou um "choco" não apresenta nada, e quando digito "choco -version" aparece:

Parsing -version resulted in error (converted to warning):
 Cannot bundle unregistered option '-e'.
This is a listing of all of the different things you can pass to choco....

e estou utilizando o cmd comum.

solução!

Isso ta me parecendo erro na instalação... Eu recomendaria desinstalar e seguir esse passo a passo cara: https://chocolatey.org/install