5

I'm currently in the process of upgrading to yarn 2 and with classic yarn (yarn 1) we used to install packages in a custom folder using --modules-folder as described here

I don't find a equivalent option or a way to do it with yarn 2.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Subash
  • 3,128
  • 6
  • 30
  • 44

1 Answers1

0

Not sure if the following is the same thing but looks similar to the link your question provided.

For Yarn you could add a folder as follows with the following scenario:

├── customFolder
│   ├── build
│   ├── src
│   ├── ...
│   └── package.json
├── node_modules
├── public
├── src
├── ...
└── package.json

Yarn 1

yarn add file:./customFolder

Yarn 2 | Yarn 3

yarn add ./customFolder
Marc
  • 5,109
  • 2
  • 32
  • 41