Node. js is a software platform that is usually used to build large-scale server applications. Node. js uses JavaScript as its scripting language. Due to its non-blocking IO Design and single-thread event loop mechanism, it can deliver extremely high performance. Node. js contains the Google V8 JavaScript Engine. libuv library and core library are almost all written in JavaScript. The libuv Library provides asynchronous event I/O abstraction and a cross-platform Node. js mechanism.
Node. js was initially created by Ryan Dahl and is currently being evolved and maintained by Isaac Schlueter.
There are many articles on the Internet that compile and install Node. js from the source code. I strongly recommend against this method. In most cases, the package maintainer has a clear understanding of the software structure, and developers do not need to compile the latest source code from scratch.
The following method applies to the latest versions of Ubuntu, Ubuntu 12.04 LTS, Ubuntu 12.10, and Ubuntu 13.04. It can help developers install Node. js on Ubuntu without compiling and installing it from scratch. You can run the following command on a VM instance:
# Apt-get update # apt-get install-y python-software-properties-common # add-apt-repository ppa: chris-lea/node. js # apt-get update # apt-get install nodejs
Once the command is executed, the latest version of Node. js is installed, so you need to worry about it. Once the new version of Node. js is released, you can upgrade it directly from the package manager without re-Compiling and installing it from scratch.