- Install yarn in npm mode, the premise is to install nodejs first, and make sure that the npm node command can be
installed globally with node - install yarn
npm install yarn -g
- If the test yarn prompts command not found, soft link the yarn command to the global
ln -s /root/node-v10.16.3-linux-x64/bin/yarn /usr/local/bin/yarn