How to change Yarn default packages directory?

后端 未结 3 1697
抹茶落季
抹茶落季 2021-02-04 00:18

When Yarn is used to install dependencies, it puts them in node-modules directory by default.

How can I change this to i.e Laravel resources fo

3条回答
  •  时光取名叫无心
    2021-02-04 01:07

    You can create a .yarnrc file with the following content:

    --modules-folder resources
    

    This way every yarn command will have this parameter set.

提交回复
热议问题