'Windows 10 - Error code 2330 occurs when trying to uninstall or change program

Every time I try to uninstall, change or reinstall Nodejs application, the process ends with error 2330.

The problem started when I was trying to install new npm package, but this error popped up in bash: “npm install Cannot find module '../lib/utils/unsupported.js'”

I tried to reinstall Nodejs, but without success. I am not even able to delete the npm_modules folder inside Nodejs directory.



Solution 1:[1]

I solved this problem on Windows 10 by download this Microsoft Troubleshooter. :-)

The problem with the inability to uninstall, change or reinstall the program was related to the registry.

https://support.microsoft.com/en-us/topic/fix-problems-that-block-programs-from-being-installed-or-removed-cca7d1b6-65a9-3d98-426b-e9f927e1eb4d

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1