Multiple package.json files in one package

As far as I have seen, package.json deals with a single directory’s dependencies (and a single instance of node_modules).

Your best bet is to split your applications into separate directories.

Barring that, you could just add all of the dependencies to a single package.json file. It will install into the node_modules folder and any app within that directory will have access to all of the installed modules.

Leave a Comment