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
Advertisement
Answer
- Run npm cache clean –force
- Uninstall from Programs & Features with the uninstaller.
- Reboot (or you probably can get away with killing all node-related processes from Task Manager).
- 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:
- C:Program Files (x86)Nodejs
- C:Program FilesNodejs
- C:Users{User}AppDataRoamingnpm (or %appdata%npm)
- C:Users{User}AppDataRoamingnpm-cache (or %appdata%npm-cache)
- C:Users{User}.npmrc (and possibly check for that without the . prefix too)
- C:Users{User}AppDataLocalTempnpm-*
- Check your %PATH% environment variable to ensure no references to Nodejs or npm exist.
- 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.
- Reboot, for good measure.