5
respostas

Instalção incompleta

Fui instalar o Chocolatey e apareceu essa mensagem e nao sei se ela pode me atrapalhar futuramente

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.

Set-Item : O nome da variável de ambiente não pode conter caractere igual. No C:\Users\Eragon\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateyInstall\helpers\functions\Update-SessionEn vironment.ps1:74 caractere:11

Set-Item "Env:$($_)" -Value (Get-EnvironmentVariable -Scope ... ~ CategoryInfo : NotSpecified: (:) [Set-Item], ArgumentException FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.SetItemCommand Set-Item : O nome da variável de ambiente não pode conter caractere igual. No C:\Users\Eragon\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateyInstall\helpers\functions\Update-SessionEn vironment.ps1:74 caractere:11

Set-Item "Env:$($_)" -Value (Get-EnvironmentVariable -Scope ... ~ CategoryInfo : NotSpecified: (:) [Set-Item], ArgumentException FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.SetItemCommand

5 respostas

fui instalar o cmder full agora pelo comando do choco e nao funcionou

vcredist2010 v10.0.40219.2 [Approved] vcredist2010 package files install completed. Performing other installation steps. cmder not installed. An error occurred during installation: O nome da variável de ambiente não pode conter caractere igual. cmder package files install completed. Performing other installation steps. The install of cmder was NOT successful. cmder not installed. An error occurred during installation: O nome da variável de ambiente não pode conter caractere igual.

Chocolatey installed 1/2 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • cmder (exited 1) - cmder not installed. An error occurred during installation: O nome da variável de ambiente não pode conter caractere igual.

Oi João, por algum motivo ele tá reclamando das suas variáveis de ambiente. Abre o Powershell, usa o comando abaixo e cola o resultado dele aqui por favor?

Get-Item -Path Env:
Name                           Value
----                           -----
SystemDrive                    C:
ProgramFiles(x86)              C:\Program Files (x86)
ProgramW6432                   C:\Program Files
ChocolateyInstall              C:\ProgramData\chocolatey
PROCESSOR_IDENTIFIER           Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
TMP                            C:\WINDOWS\TEMP
PROCESSOR_ARCHITECTURE         AMD64
Path                           C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Commo...
SynaProgDir                    Synaptics\SynTP
PROCESSOR_REVISION             4501
TEMP                           C:\WINDOWS\TEMP
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
LOGONSERVER                    \\DESKTOP-87RBJF3
USERNAME                       Joao
SystemRoot                     C:\WINDOWS
OneDrive                       C:\Users\Eragon\OneDrive
CommonProgramFiles             C:\Program Files\Common Files
ProgramData                    C:\ProgramData
HOMEPATH                       \Users\Eragon
OneDriveConsumer               C:\Users\Eragon\OneDrive
COMPUTERNAME                   DESKTOP-87RBJF3
CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files
ALLUSERSPROFILE                C:\ProgramData
CommonProgramW6432             C:\Program Files\Common Files
SESSIONNAME                    Console
DriverData                     C:\Windows\System32\Drivers\DriverData
HOMEDRIVE                      C:
windir                         C:\WINDOWS
NUMBER_OF_PROCESSORS           4
OS                             Windows_NT
ProgramFiles                   C:\Program Files
ComSpec                        C:\WINDOWS\system32\cmd.exe
PATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
JAVA_HOME                      c:\Program Files\Java\jdk-11.0.2
PSModulePath                   C:\Users\Eragon\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShel...
APPDATA                        C:\Users\Eragon\AppData\Roaming
USERDOMAIN                     DESKTOP-87RBJF3
PROCESSOR_LEVEL                6
USERPROFILE                    C:\Users\Eragon
LOCALAPPDATA                   C:\Users\Eragon\AppData\Local
ChocolateyLastPathUpdate       seg fev 25 20:32:50 2019
USERDOMAIN_ROAMINGPROFILE      DESKTOP-87RBJF3
PUBLIC                         C:\Users\Public

Nossa, não encontrei nenhum problema. Você já tentou reinstalar o Chocolatey? Você instalou com o Powershell em modo administrador?

Ola Wanderson, desculpa a demora estava sem o computador. Instalei o choco pelo PowerShell e apareceu isso

PS C:\WINDOWS\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).Downloa dString('https://chocolatey.org/install.ps1')) 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\Eragon\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\Eragon\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. chocolatey.nupkg file not installed in lib. Attempting to locate it from bootstrapper. PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding... AVISO: Not setting tab completion: Profile file does not exist at 'C:\Users\Eragon\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