How to completely remove node js from Windows

0 votes
I removed my prior version of node.js (0.8.11), then downloaded and installed the current version, 0.10.24, from the node.js website. However, when I run node —version, it still says I'm on v0.8.11. Obviously, something was left behind during the uninstall process, and it's generating all kinds of issues when I try to add modules using npm. I've seen solutions for OSX and Linux, but not for Windows. I'm using a 64-bit version of Windows 7.
Jun 14 in Node-js by Vaani
• 7,020 points
131 views

1 answer to this question.

0 votes
  • 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 Files\Nodejs
  • C:\Users\{User}\AppData\Roaming\npm (or %appdata%\npm)
  • C:\Users\{User}\AppData\Roaming\npm-cache (or %appdata%\npm-cache)
  • C:\Users\{User}\.npmrc (and possibly check for that without the . prefix too)
  • C:\Users\{User}\AppData\Local\Temp\npm-*
  • 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.

answered Jun 14 by Neha
• 8,560 points

Related Questions In Node-js

0 votes
1 answer

How to stop node.js program from command line?

Hello @kartik, Ctrl+Z suspends it, which means it can ...READ MORE

answered Jul 15, 2020 in Node-js by Niroj
• 82,740 points
8,259 views
0 votes
1 answer

How to execute an external program from within Node.js?

Hello @kartik, Exec has memory limitation of buffer ...READ MORE

answered Jul 17, 2020 in Node-js by Niroj
• 82,740 points
2,414 views
0 votes
1 answer

How to “Ping” from a Node.js app?

Hello @kartik, You could use exec to call the system ...READ MORE

answered Oct 16, 2020 in Node-js by Niroj
• 82,740 points
2,767 views
0 votes
1 answer

How to read environment variables in Node.js?

Hello @kartik, Yes,you can read environment variables in Node.js ...READ MORE

answered Jul 8, 2020 in Node-js by Niroj
• 82,740 points
804 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,002 views
0 votes
1 answer
0 votes
1 answer

'npm' is not recognized as internal or external command, operable program or batch file

To your existing lines of code, include ...READ MORE

answered Feb 10 in Others by Rahul
• 9,000 points
3,630 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP