There are two ways to install nodejs in linux. One is simple, just unzip it and use it; the other is to download the source code, compile it, and install it through make and make install commands. Here we only talk about the first one, which is simple and convenient. There is no need to execute make or make install. Here are the steps: 1. Determine the Linux system you are using, and then download the corresponding compressed package. Here I downloaded node-v6.11.2-linux-x64.tar.xz2. Upload to the Linux related path, usually /usr/local/, and execute the following command
3. Check whether the installation is successful4. Configure soft links so that node commands can be used globally
5. Configure the node file installation pathEnter the /usr/local/node/ path:
6. When you feel that npm is slow, you can install cnpm
By the way, you can check whether the global installation -g is installed in the node_global file according to the previous settings. To use cnpm globally as follows, remember to configure a soft link. This is the end of this article about installing nodejs environment and path configuration in Linux. For more relevant content about installing nodejs in Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: mysql IS NULL using index case explanation
>>: How to write a picture as a background and a link (background picture plus link)
1. unlink function For hard links, unlink is used...
1. MySQL User Management [Example 1.1] Log in to ...
Installation Environment 1. gcc installation To i...
In the development environment, the vue project i...
Overview This article is a script for automatical...
Build the image Earlier we used various images fo...
Form submission code 1. Source code analysis <...
1. Problem description The storage installed in t...
MySQL 5.7 installation We are learning MySQL data...
The enctype attribute of the FORM element specifie...
Knowing that everyone's time is precious, I w...
Better-scroll scrolling principle As a parent con...
Table of contents Effect Start creating text Firs...
1. Create a test table CREATE TABLE `testsign` ( ...
Problem description: When phpstorm's SFTP hos...