Closed kwv closed 9 years ago
The failure in the Atom package install is due to this bug in Chocolatey: https://github.com/chocolatey/choco/issues/230
Expect to see this fixed in 0.9.9.5 of choco
@ferventcoder This is not fixed in 0.9.9.5, or maybe this is now a different error. But nugetExePath still null apparently:
============================================================
2015-04-23 15:58:32,402 [INFO ] - Chocolatey v0.9.9.5
2015-04-23 15:58:32,449 [INFO ] - Installing the following packages:
2015-04-23 15:58:32,449 [INFO ] - Atom
2015-04-23 15:58:32,449 [INFO ] - By installing you accept licenses for the packages.
2015-04-23 15:58:35,871 [INFO ] -
Atom v0.174.1
2015-04-23 15:58:39,090 [ERROR] - Join-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-23 15:58:39,090 [ERROR] - At C:\ProgramData\chocolatey\lib\Atom\tools\chocolateyInstall.ps1:2 char:22
2015-04-23 15:58:39,090 [ERROR] - + $apmPath = Join-Path $nugetExePath "apm.bat"
2015-04-23 15:58:39,090 [ERROR] - + ~~~~~~~~~~~~~
2015-04-23 15:58:39,090 [ERROR] - + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
2015-04-23 15:58:39,090 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
2015-04-23 15:58:39,090 [ERROR] - mand
2015-04-23 15:58:39,090 [ERROR] - Test-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-23 15:58:39,090 [ERROR] - At C:\ProgramData\chocolatey\lib\Atom\tools\chocolateyInstall.ps1:3 char:15
2015-04-23 15:58:39,090 [ERROR] - + if (Test-Path ($apmPath)) {Remove-Item $apmPath -force}
2015-04-23 15:58:39,090 [ERROR] - + ~~~~~~~~~~
2015-04-23 15:58:39,105 [ERROR] - + CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
2015-04-23 15:58:39,105 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
2015-04-23 15:58:39,105 [ERROR] - mand
2015-04-23 15:58:39,105 [ERROR] - Join-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-23 15:58:39,105 [ERROR] - At C:\ProgramData\chocolatey\lib\Atom\tools\chocolateyInstall.ps1:6 char:23
2015-04-23 15:58:39,105 [ERROR] - + $atomPath = Join-Path $nugetExePath "atom.exe"
2015-04-23 15:58:39,105 [ERROR] - + ~~~~~~~~~~~~~
2015-04-23 15:58:39,105 [ERROR] - + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
2015-04-23 15:58:39,105 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
2015-04-23 15:58:39,105 [ERROR] - mand
2015-04-23 15:58:39,105 [ERROR] - Test-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-23 15:58:39,105 [ERROR] - At C:\ProgramData\chocolatey\lib\Atom\tools\chocolateyInstall.ps1:7 char:15
2015-04-23 15:58:39,105 [ERROR] - + if (Test-Path ($atomPath)) {Remove-Item $atomPath -force}
2015-04-23 15:58:39,105 [ERROR] - + ~~~~~~~~~~~
2015-04-23 15:58:39,105 [ERROR] - + CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
2015-04-23 15:58:39,105 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
2015-04-23 15:58:39,105 [ERROR] - mand
2015-04-23 15:58:39,183 [INFO ] - Using this proxyserver: bluecoat-proxy:8080
2015-04-23 15:58:40,621 [INFO ] - Downloading Atom 32 bit
2015-04-23 15:58:40,621 [INFO ] - from 'https://atom.io/download/windows'
2015-04-23 15:58:40,714 [INFO ] - Using this proxyserver: bluecoat-proxy:8080
2015-04-23 16:00:50,413 [INFO ] - Installing Atom...
2015-04-23 16:00:51,695 [INFO ] - Atom has been installed.
2015-04-23 16:00:51,773 [ERROR] - The install of atom was NOT successful.
2015-04-23 16:00:51,773 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\Atom\tools\chocolateyInstall.ps1'.
See log for details.
2015-04-23 16:00:53,804 [WARN ] -
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2015-04-23 16:00:53,804 [ERROR] - Failures:
2015-04-23 16:00:53,804 [ERROR] - - atom
@bradgearon It looks like the package is using something it should not - $nugetExePath
is not part of the API and it is no longer available as Chocolatey is now compiled instead of a powershell module itself.
@kevinsawicki @bradgearon would you mind updating the package to use Install-BinFile? https://github.com/chocolatey/choco/blob/master/src/chocolatey.resources/helpers/functions/Install-BinFile.ps1#L15-L21
Adding the following in 0.9.9.6 https://github.com/chocolatey/choco/issues/267
This is now fixed. You should be able to install with choco 0.9.9.6.
Closing this out since it has been fixed upstream
From running the AtomInstall.exe in the \Temp\chocolatey\ directory, it looks like the issue presents when running with the --silent flag (also tried /quiet). Omitting the flag shows the splash screen, but allows installation to precede.