npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Wanted: concrete install from monorepo with file: dependencies

G’day! Given:

… I’d like to get a global install of b and its production dependencies, including a, with no symlinks.

Unfortunately:

I’m not open to solutions involving npm publish or yarn.


I played around with bundledDependencies recently in a monorepo with relative file: specifiers (the lerna source), and it definitely did not like node_modules living in an ancestor directory, among other things.

I honestly don’t see how your Docker requirements are possible to achieve without publishing the packages first (lerna replaces the file: specifiers with the target semver range before packing) and then installing them at the root of the Docker image target thingy (don’t use Docker, sorry I don’t know the lingo).