how to use a dependency of multiple major versions in npm 7 workspaces

Viewed 506

I have an NPM 7.0 workspaces monorepo.

Several of the sub-packages use different major versions of a dependency.

However, it seems like NPM workspaces is only able to install a single version and has issues serving me the correct major version when I use the dependency in one of the packages.

In YARN I could add the dependency to noHoist, but this doesn't seem to exist or work in NPM 7.0 workspaces.

0 Answers
Related