1. Install yarn
npm install -g yarn
Check the yarn version to determine whether the installation is successful
>yarn --version
2. Yarn download package error: running scripts is prohibited on this system
Error graph:
Solution:
Open Windows PowerShell
View the current PowerShell execution policy type
get-ExecutionPolicy
Change the PowerShell execution policy type to RemoteSigned
set-ExecutionPolicy RemoteSigned
View the image source of yarn
yarn config get registry
yarn install package