1. Find the corresponding nodejs package, refer to https://nodejs.org/download/release/ 2. Switch to the location where node is installed, which is /usr/local/lib/nodejs No existence can be established 3. Download wget node-v8.12.0-linux-x64.tar.xz 4. Unzip tar -xJvf node-8.12.0-linux-x64.tar.xz -C /usr/local/lib/nodejs mv /usr/local/lib/nodejs/node-8.12.0-linux /usr/local/lib/nodejs/node-8.12.0 5. Configure environment variables Enter the following export NODEJS_HOME=/usr/local/lib/nodejs/node-8.12.0/bin export PATH=$NODEJS_HOME:$PATH 6. Refresh environment variables immediately 7. Detection version 8. Establish system links to simplify calls sudo ln -s /usr/local/lib/nodejs/node-8.12.0/bin/node /usr/bin/node sudo ln -s /usr/local/lib/nodejs/node-8.12.0/bin/npm /usr/bin/npm sudo ln -s /usr/local/lib/nodejs/node-8.12.0/bin/npx /usr/bin/npx Summarize The above is the method of manually upgrading the node version under CentOs introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: 7 interview questions about JS this, how many can you answer correctly
>>: Simple implementation of Mysql add, delete, modify and query statements
You might be wondering why you should use the pat...
Table of contents 1. Pull the mysql image 2. Chec...
This article shares the specific code for JavaScr...
This article introduces how to install Chrome bro...
Using NULL in comparison operators mysql> sele...
1. First, prepare VS2019 and MySQL database. Both...
Relative path - a directory path established based...
Table of contents infer Case: Deepen your underst...
HTML Input Attributes The value attribute The val...
This article example shares the specific implemen...
Execute the command to install the plugin postcss...
Table of contents 1. Basic concepts and basic com...
This article example shares the specific code of ...
Table of contents 1. What is an event? 2. How to ...
Note: It is recommended that the virtual machine ...