* * The original link is * * [http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/] (http://www.hostingadvice.com/ HOW-TO/INSTALL-NODEJS-UBUNTU-14-04/) * * by author Jacob Nicholson published in October 27, 2015**** here to thank the author * * node. JS is becoming more and more popular as a JavaScript-based development platform. Many developers want to build programs and libraries developed through JavaScript, whether in the foreground or in the background. Happily, the node package management tool named NPM provides more than 100,000 node. JS-based packages. When we have completed the local installation of node. js, it may be curious where to get the free node. js Package Service.
* * Install node.js** on ubuntu14.04
So how do we install node. js on unbutn14.04? There are several ways to do this: Before you choose the installation method, you need to uninstall the old version that is already installed on the system to avoid conflicts. -* * Method One * *: Install standard Debian/ubuntu node. js and NPM Packages-* * Method Two * *: Installation via the Debian/ubuntu installation package provided by the node. JS (related) team-* * Method Three * * : Manually compiled installation via the binary installation package provided by the node. JS Official Website-* * Method Four * *: Installation via GitHub code library This article covers the first three methods. The first method is to recommend the installation method, because this method is safe and stable. The second to the fourth approach has the advantage of being able to help you get the latest version of node. JS and NPM.
* * To avoid conflicts, you must first uninstall the installed node.js**
On Ubuntu, older versions of node. JS have similar name *node*. The latter is a amateur packetradio program[1], you can completely delete. If you already have node installed, you'd better uninstall it. Some node. JS Tools execute node instead of node. js as the correct node program, which can cause conflicts. You can look for these installation packages at the terminal and delete them. Open the terminal and execute the following statement if ' Install ' appears in the right column indicating that node is installed in the system: ' $ dpkg--get-selections | grep nodeax25-node installnode Install "" If you are thinking of an older version of node in your system, you need to execute the following statement to uninstall: "' $ sudo apt-get remove--purge node ' # # # # # # Install node. js under open Terminal by using the Ununtu Package management tool, enter the following command to install the node. js "$ sudo apt-get install Nodejs ' Install node Package Manager NPM" "$ sudo apt-get Install NPM to create a symbolic link for node, many node. JS tools will use this link to execute. "' $ sudo ln-s/usr/bin/nodejs/usr/bin/node" To this point, the following node command and NPM command can be executed. "$ node-vv0.10.25$ npm-v1.3.10"
* * Installed through installation packages provided by the node. JS Related Personnel * *
The following procedure is also described in [here] (Https://github.com/nodejs/node-v0.x-archive/wiki/Installing-Node.js-via-package-manager). Add the installation source for node. JS Maintenance to the list of Ubuntu resources by adding the following command "$ CURL-SL https://deb.nodesource.com/setup | sudo bash-"" then install node. js ' ' $ sudo ' via *apt-get* command apt-get install Nodejs ' to create a symbolic link for node (for the same reason) ' $ sudo ln-s/usr/bin/ Nodejs/usr/bin/node "Now, the following node command and NPM command can be executed. "$ node-vv0.10.25$ npm-v1.3.10"
* * Manually compiled installation via the binary installation package provided by the node. JS Website * *
Go to the node. JS official website [download page] (https://nodejs.org/download/) and download the node. JS installation package According to the system selection, respectively, with 32-bit and 64-bit downloads. You can obtain the system information by using the following command "$ getconf long_bit64$ uname-px86_64" You can download the installation file via the browser, or you can download it via the following command. (Note: The version in the following command may be different from yours.) "' Wget http://nodejs.org/dist/v0.12.0/node-v0.12.0-linux-x64.tar.gz" under Terminal, go to the directory where the download file is located, install node. js by executing the following command usr/local/' path ' ' sudo tar-c/usr/local--strip-components 1-xzf node-v0.10.34-linux-x86.tar.gz ' Now, You should have installed node. js and NPM under the '/usr/local/bin ' path. You can view the "Ls-l/usr/local/bin/nodels-l/usr/local/bin/npm" from the following command
* * Written at the end * *
I hope this article will help you. If you are a beginner of node. JS programming, you can come to [Nodeschool] (http://nodeschool.io/) to see a lot of interesting tutorials here.
* * Any questions or suggestions? Come and ask Jacob! **
He's going to get back to you when he asks Jacob questions. We will do everything possible to help you in any way! * * The original link is * * [http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/] (http://www.hostingadvice.com/ HOW-TO/INSTALL-NODEJS-UBUNTU-14-04/) [1]: This really does not know what it means
Translation How to install node. js on Ubuntu 14.04 installing node. js on ubuntu14.04