In the CMD command line execution
# 1 globally installed position change yarn yarn the SET, Ltd. Free Join config-Folder " your disk path " # 2. Then you will find `.yarnrc` file in your home directory, open it and find the` global-folder`, change --global-folder` as ` # here is my path to the Yarn, Ltd. Free Join the SET-config Folder " D: \ Software \ the Yarn \, Ltd. Free Join "
# 2. Change yarn cache location yarn config the SET-Cache Folder " your disk path " # Here is my path yarn config the SET-Cache Folder " D: \ Software \ yarn \ Cache "
When we use the global installation package will: generate the next "D \ Software \ yarn \ global " node_modules\.bin
directory
We need to D:\Software\yarn\global\node_modules\.bin
add an entire directory to the system environment variables to, or by adding a global yarn package is not found in cmd.
Bin check the current position of the yarn
yarn global bin
Check the installation position of the current global yarn of
Global yarn dr