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)
Scenario Suppose there are 10 requests, but the m...
When I switched my primary operating system from ...
Table of contents Variable Scope The concept of c...
Table of contents 1. Generate AST abstract syntax...
<br />Related articles: How to prompt and op...
Table of contents text LOCK parameter ALGORITHM p...
Unzip the Maven package tar xf apache-maven-3.5.4...
Preface When mysql modified the default database ...
[Problem description] On the application side, th...
question The tomcat container was successfully ad...
This article describes MySQL index coverage with ...
1. Grammar location [=|~|~*|^~|@] /uri/ { ... } 2...
YSlow is a page scoring plug-in developed by Yaho...
Currently, almost all large websites and applicat...
mysql 8.0.22 winx64 installation and configuratio...