yarn和npm一样,默认安装的全局包和缓存都在C盘里:
npm的cache默认在:C:\Users\用户\AppData\Roaming\npm
yarn的cache默认在:C:\Users\用户\AppData\Local\Yarn
yarn config set global-folder "新缓存路径"
yarn config set cache-folder "新缓存路径"
标签:set,AppData,cache,默认,缓存,yarn,安装
来源: https://www.cnblogs.com/lv77/p/16536153.html