Yarn installation and problems encountered

Official website download program installation:
Insert image description here
npm installation:
download node.js, use npm to install
npm install -g yarn
check version: yarn --version

Problems encountered:
The display is not an internal or external command problem
. Reason: No environment variables were added.
Solution: Find the bin file under yarn, copy the path to the system variable to the path.
1. Right-click My Computer - Properties - Advanced, find the environment Variable
Insert image description here
2. Find the path option
Insert image description here
3. Add environment variables
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_42215897/article/details/103698327