Linux (centos) uses npm to install yarn

  1. 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
  2. install yarn
npm install yarn -g
  1. 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

Guess you like

Origin blog.csdn.net/bai_mi_student/article/details/123913380