Yarn: how to change global folder?

Created on 10 Apr 2018  路  2Comments  路  Source: yarnpkg/yarn

i want change
'c:\user\xx\AppData\Local\Yarn\Data\global'
to
'd:\global-folder'

i test
yarn config set global-folder "d:\global-folder"
but
when i test
yarn global dir
the result is 'c:\user\xx\AppData\Local\Yarn\Data\global'

yarn version is 1.5.1

triaged

Most helpful comment

#5746

  • Run yarn config set global-folder "d:\global-folder"
  • Open your .yarnrc file, find global-folder replace with --global-folder
  • The .yarnrc file default path is %userprofile%

All 2 comments

I have the same problem. no body wants to use that global default path

#5746

  • Run yarn config set global-folder "d:\global-folder"
  • Open your .yarnrc file, find global-folder replace with --global-folder
  • The .yarnrc file default path is %userprofile%
Was this page helpful?
0 / 5 - 0 ratings