How to change Yarn default packages directory?
问题 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 folder? Like .bowerrc is used for bower to set "directory": "resources/assets" 回答1: yarn install --modules-folder ./resources UPDATE: Keep an eye on this GitHub Issue as this feature is not quite stable. UPDATE 2: From Damien's answer below, you can add --install.modules-folder "./resources" to a .yarnrc file so that you don't need to continually pass