Install build tools and library files

$ yum install gcc gcc-c++
Copy the code

Install the Node

Download Node at nodejs.org/en/download…

$wget HTTP: / / https://nodejs.org/dist/v14.15.1/node-v14.15.1-linux-x64.tar.xzCopy the code

Decompress the installation package

$tar - XVF node - v14.15.1 - Linux - x64. Tar. XzCopy the code

rename

Node - mv v14.15.1 - Linux - x64 node - v14.15.1Copy the code

Establish a soft chain

$ln -s /opt/tools/node-v14.15.1/bin/node /usr/bin/node $node-v $ln -s /opt/tools/node-v14.15.1/bin/ NPM /usr/bin/npm $ npm -vCopy the code

Installation of Yarn

$ curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
$ yum install -y yarn
Copy the code