I am using Yarn 2.0.0-rc.27
+ workspaces + TypeScript and I want to turn PnP off and use node_modules
again. I tried it with following setting in package.json
:
"installConfig": {
"pnp": false
},
However, Yarn uses PnP mode every time. Is there any option to turn it off?
I ran into a bunch of issues with Yarn 2 as well using the same stack. The solution is to create a .yarnrc.yml
file with the following line:
nodeLinker: node-modules
This can also be done with following yarn
command:
yarn config set nodeLinker node-modules