Skip to content
Advertisement

React is not getting uninstalled in windows

I am not able to uninstall react app in windows 10. I tried everything which is in stackoverflow but it is not getting uninstalled. I am using npm . Even I removed nodejs, still it is not working.

I actually need to use latest version so when I installed nodejs and react again it is still picking old version of reacr and then app is not running. something really weird

enter image description here

enter image description here

Advertisement

Answer

  1. Run npm cache clean –force
  2. Uninstall from Programs & Features with the uninstaller.
  3. Reboot (or you probably can get away with killing all node-related processes from Task Manager).
  4. Look for these folders and remove them (and their contents) if any still exist. Depending on the version you installed, UAC settings, and CPU architecture, these may or may not exist:
    1. C:Program Files (x86)Nodejs
    2. C:Program FilesNodejs
    3. C:Users{User}AppDataRoamingnpm (or %appdata%npm)
    4. C:Users{User}AppDataRoamingnpm-cache (or %appdata%npm-cache)
    5. C:Users{User}.npmrc (and possibly check for that without the . prefix too)
    6. C:Users{User}AppDataLocalTempnpm-*
  5. Check your %PATH% environment variable to ensure no references to Nodejs or npm exist.
  6. If it’s still not uninstalled, type where node at the command prompt and you’ll see where it resides — delete that (and probably the parent directory) too.
  7. Reboot, for good measure.
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement