I know this is something confusing. but
node --version
v5.2.0
and
nodejs --version
v0.10.25
gives different versions? What is the difference between them?
1 NodeJS :#N#NodeJS is a cross-platform and opensource Javascript runtime environment that allows the javascript to be... 2 JavaScript : More ...
NodeJS : NodeJS is a cross-platform and opensource Javascript runtime environment that allows the javascript to be run on the server-side. Nodejs allows Javascript code to run outside the browser.
Npm depends on Node. Nvm installs Node. NodeJS is just a cutesy name for Node. Node is an interpreter for Javascript, and Javascript files end in .js, so the standard thing for JS tools is to call them ToolJS whether that makes sense or not. Eh. It’s not up to us to question such mysteries. We just use the names handed down to us by the gods.
Both the browser and Node.js use JavaScript as their programming language. Building apps that run in the browser is a completely different thing than building a Node.js application. Despite the fact that it's always JavaScript, there are some key differences that make the experience radically different.
You probably installed node as a not-clean installation, and instead of upgrading the node version on your computer, you've added a different version and kept the old one. Installing 32bit/64bit versions might explain this as well.
If you want to get everything in order, go to Add/Remove programs, remove all your node versions, make sure nothing is left in Program Files / Program Files (x86) and install a clean installation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With