Home >Web Front-end >JS Tutorial >Install the latest version of Node.js_node.js on Ubuntu

Install the latest version of Node.js_node.js on Ubuntu

WBOY
WBOYOriginal
2016-05-16 16:41:592273browse

Node.js contains the Google V8 JavaScript engine, and the libuv library and core libraries are almost all written in JavaScript. The libuv library provides an abstraction of asynchronous event I/O and a cross-platform mechanism for Node.js.

Node.js was originally created by Ryan Dahl and is currently evolved and maintained by Isaac Schlueter.

There are many articles on the Internet about compiling and installing Node.js from source code. I strongly recommend not to use this method. In most cases, the package maintainer has a very clear understanding of the software structure, and developers do not need to compile the latest version of the source code from scratch.

The following method is suitable for the latest version of Ubuntu, Ubuntu 12.04 LTS, Ubuntu 12.10, Ubuntu 13.04 and other versions. It helps developers install Node.js on Ubuntu without compiling and installing from scratch. You can execute the following commands on the cloud host:

# apt-get update
# apt-get install -y python-software-properties 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 will be installed without any worries. Once a new version of Node.js is released, you can upgrade directly from the package manager without having to recompile and install it from scratch.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn