目录

Window10安装Chocolatey 'An existing Chocolatey installation was detected'

情景

安装Node.js时安装额外组件时安装Chocolatey,安装失败,反馈以下信息:

1
2
3
An existing Chocolatey installation was detected. Installation will not continue.
For security reasons, this script will not overwrite existing installations.
Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.

解决方案

1
Remove-Item C:\ProgramData\chocolatey -Recurse

重新执行安装脚本即可