https://nodejs.org/dist/v21.1.0/node-v21.1.0-x64.msi
下载,安装到D:\ide\node.js
我勾选了安装Chocolatey包管理工具,默认没打勾
弹出powershell命令窗口,安装过程中python程序安装报错
实际上电脑里已经安装了python多个版本,环境变量都配好了,不知道为什么这个安装工具说没检测到python。以下是窗口信息:
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy. Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.2.2. Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.2.2 to C:\Users\Administrator\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip Not using proxy. Extracting C:\Users\Administrator\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\Administrator\AppData\Local\Temp\chocolatey\chocoInstall
Installing Chocolatey on the local 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.
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…
警告: Not setting tab completion: Profile file does not exist at
‘C:\Users\Administrator\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
Chocolatey v2.2.2
Upgrading the following packages:
python;visualstudio2019-workload-vctools
By upgrading, you accept licenses for the packages.
python is not installed. Installing…
Progress: Downloading chocolatey-compatibility.extension 1.0.0… 100%
chocolatey-compatibility.extension v1.0.0 [Approved]
chocolatey-compatibility.extension package files upgrade completed. Performing other installation steps.
Installed/updated chocolatey-compatibility extensions.
The upgrade of chocolatey-compatibility.extension was successful.
Software installed to ‘C:\ProgramData\chocolatey\extensions\chocolatey-compatibility’
Progress: Downloading chocolatey-core.extension 1.4.0… 100%
chocolatey-core.extension v1.4.0 [Approved]
chocolatey-core.extension package files upgrade completed. Performing other installation steps.
Installed/updated chocolatey-core extensions.
The upgrade of chocolatey-core.extension was successful.
Software installed to ‘C:\ProgramData\chocolatey\extensions\chocolatey-core’
Progress: Downloading chocolatey-windowsupdate.extension 1.0.5… 100%
chocolatey-windowsupdate.extension v1.0.5 [Approved]
chocolatey-windowsupdate.extension package files upgrade completed. Performing other installation steps.
Installed/updated chocolatey-windowsupdate extensions.
The upgrade of chocolatey-windowsupdate.extension was successful.
Software installed to ‘C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate’
Progress: Downloading KB2919442 1.0.20160915… 100%
KB2919442 v1.0.20160915 [Approved]
KB2919442 package files upgrade completed. Performing other installation steps.
Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
The upgrade of KB2919442 was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Progress: Downloading KB2919355 1.0.20160915… 100%
KB2919355 v1.0.20160915 [Approved]
KB2919355 package files upgrade completed. Performing other installation steps.
Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
The upgrade of KB2919355 was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Progress: Downloading KB2999226 1.0.20181019… 100%
KB2999226 v1.0.20181019 [Approved] - Possibly broken
KB2999226 package files upgrade completed. Performing other installation steps.
Skipping installation because update KB2999226 does not apply to this operating system (Microsoft Windows 11 专业版).
The upgrade of KB2999226 was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Progress: Downloading KB3035131 1.0.3… 100%
KB3035131 v1.0.3 [Approved]
KB3035131 package files upgrade completed. Performing other installation steps.
Skipping installation because update KB3035131 does not apply to this operating system (Microsoft Windows 11 专业版).
The upgrade of KB3035131 was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Progress: Downloading KB3033929 1.0.5… 100%
KB3033929 v1.0.5 [Approved]
KB3033929 package files upgrade completed. Performing other installation steps.
Skipping installation because update KB3033929 does not apply to this operating system (Microsoft Windows 11 专业版).
The upgrade of KB3033929 was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Progress: Downloading vcredist140 14.36.32532… 100%
vcredist140 v14.36.32532 [Approved]
vcredist140 package files upgrade completed. Performing other installation steps.
Runtime for architecture x86 version 14.36.32532 is already installed.
Runtime for architecture x64 version 14.36.32532 is already installed.
The upgrade of vcredist140 was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Progress: Downloading vcredist2015 14.0.24215.20170201… 100%
vcredist2015 v14.0.24215.20170201 [Approved]
vcredist2015 package files upgrade completed. Performing other installation steps.
The upgrade of vcredist2015 was successful.
Software installed to ‘C:\ProgramData\chocolatey\lib\vcredist2015’
Progress: Downloading python312 3.12.0… 100%
python312 v3.12.0 [Approved]
python312 package files upgrade completed. Performing other installation steps.
Installing 64-bit python312…
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="’/lv c:\python312_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\python312\tools\python-3.12.0-amd64.exe” /quiet InstallAllUsers=1 PrependPath=1 TargetDir=“C:\Python312” ] 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:\python312_msi_install.log’"'. Then search the MSI Log for “Return Value 3” and look above that for the error…
The upgrade of python312 was NOT successful.
Error while running ‘C:\ProgramData\chocolatey\lib\python312\tools\chocolateyInstall.ps1’.
See log for details.
Progress: Downloading python3 3.12.0… 100%
python3 v3.12.0 [Approved]
python3 package files upgrade completed. Performing other installation steps.
The upgrade of python3 was successful.
Software installed to ‘C:\ProgramData\chocolatey\lib\python3’
Progress: Downloading python 3.12.0… 100%
python v3.12.0 [Approved]
python package files upgrade completed. Performing other installation steps.
The upgrade of python was successful.
Software installed to ‘C:\ProgramData\chocolatey\lib\python’
visualstudio2019-workload-vctools is not installed. Installing…
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: ‘python 3.12.0 constraint: python3 (= 3.12.0)’
Unable to resolve dependency ‘kb2919355’: Unable to find a version of ‘kb2919355’ that is compatible with ‘dotnetfx 4.7.2 constraint: kb2919355 (>= 1.0.20160915)’, ‘KB2999226 1.0.20161023 constraint: kb2919355 (>= 1.0.20160915)’, ‘vcredist140 14.0.23026 constraint: kb2919355 (>= 1.0.20160915)’, ‘visualstudio2019buildtools 16.0.0 constraint: kb2919355 (>= 1.0.20160915)’.
Chocolatey upgraded 12/14 packages. 2 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Upgraded:
Failures
Did you know the proceeds of Pro (and some proceeds from other
licensed editions) go into bettering the community infrastructure?
Your support ensures an active community, keeps Chocolatey tip-top,
plus it nets you some awesome features!
https://chocolatey.org/compare
Type ENTER to exit: