Moving to yarn for modules everywhere / monorepo pattern
https://github.com/npm/npm/issues/17929 still occurs in npm 5.4.1 - private packages on the local disk are deleted whenever npm is used.
If npm fixes this in future great, but in the meantime, for others having the issue, if you're using monorepo / modules everywhere:
- Install yarn and run
yarn config set workspaces-experimental true
- Move your private packages to
- Add a yarn workspace to your