yarn安装缓存的位置的问题

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 "新缓存路径"

 

posted @ 2022-07-30 23:24  coffeemil  阅读(839)  评论(0编辑  收藏  举报