Skip to content

Python & npm installations fail #47071

Description

@DROBNJAK

Version

Current

Platform

Windows 10

Subsystem

No response

What steps will reproduce the bug?

Just hour ago I downloaded the latest .msi for installation on Windows 10. I installed the first part and then it started Windows PowerShell. PowerShell was trying to get a file from C:\ProgramData\chocolatey\lib\python3 but there is no such directory, only C:\ProgramData\chocolatey\lib\python. So, it expects python3 and it gets just python. Bellow you can find PowerShell's error report regarding that failure.

python3 v3.11.0 [Approved]
python3 package files upgrade completed. Performing other installation steps.
Installing 64-bit python3...
WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\python3_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error.
ERROR: Running ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.11.0-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python311" ] was not successful. Exit code was '1603'. Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\python3_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error..
The upgrade of python3 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'.
 See log for details.

How often does it reproduce? Is there a required condition?

100%

What is the expected behavior?

It should finish installation of both Node.js and npm. But it only installs Node.js and it doesn't install npm.

What do you see instead?


Additional information


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    installIssues and PRs related to installing Node.js and its installers.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions