-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js uninstall Windows Installer .msi leaves stranded Corepack files #646
Comments
@MikeMcC399 Am I getting it right in case of problem I've met in #305 I can just delete these files manually? |
I left the advice for you in #305 (comment). The issue I logged here is related to your problem, but if you are using Node.js As I suggested previously, if you want to discuss your individual situation further I would recommend that you open a new issue. |
The Node.js TSC vote stated as strategy decision:
So I no longer expect any effort on issues affecting Corepack only as it is bundled into Node.js. Windows Installer msi is a sub-set of distribution / installation methods. This issue only affects Microsoft Windows and only if a Node.js version manager is not used for installation. There is already some related workaround advice in the README document, Manual installs section, added through #637. Closing as not expected to be fixed. |
Issue
Uninstalling Node.js that was previously installed using a Windows Installer .msi package leaves files in "C:\Program Files\nodejs" if
corepack enable
was executed.This is probably expected behavior for Windows Installer, since the files left behind were not put there by the Windows Installer package. In contrast, Node.js version managers would typically uninstall everything as part of their uninstall process. So in comparison leaving files behind when using Windows Installer could be unexpected and it is not explicitly documented for Node.js or Corepack.
Steps to reproduce
Download the Node.js LTS Windows Installer (.msi) package from https://nodejs.org/en/download, for example
https://nodejs.org/dist/v22.13.1/node-v22.13.1-x64.msi
Open a CMD terminal window in the Downloads folder
Close and re-open CMD terminal window "Run as administrator"
Reproducible also with https://nodejs.org/dist/v22.14.0/node-v22.14.0-x64.msi
Logs
Workaround
Applies only to Node.js installed on Windows from an .msi Windows Installer package
C:\Program Files\nodejs
The text was updated successfully, but these errors were encountered: