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)
MySQL is a relational database management system....
I recently wrote a mobile page at work, which was...
Preface I just started learning MySQL and downloa...
Version 1.4.2 Official Documentation dockerhub st...
This article summarizes the common commands for L...
1. Grammar location [=|~|~*|^~|@] /uri/ { ... } 2...
Table of contents Primary key constraint Unique C...
If you are not committed to becoming an artist, t...
This article shares the specific code for JavaScr...
1. Check whether the existing nginx supports ipv6...
Now .net core is cross-platform, and everyone is ...
The <area> tag is mainly used in image maps...
Table of contents one. environment two. Precautio...
Table of contents 1. Project Description 2. Nginx...
Usage of having The having clause allows us to fi...