Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between node and nodejs

Tags:

node.js

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?

like image 297
Hari Krishnan Avatar asked Jan 28 '16 13:01

Hari Krishnan


People also ask

What is the difference between node and JavaScript?

1 NodeJS :#N#NodeJS is a cross-platform and opensource Javascript runtime environment that allows the javascript to be... 2 JavaScript : More ...

What is NodeJS?

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.

What is the difference between NVM and npm and nodeJS?

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.

What's the difference between a browser app and a node app?

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.


1 Answers

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.

like image 145
AlexD Avatar answered Nov 01 '22 19:11

AlexD