If any packages depend on my-module than my-module has to be packaged inside the node_modules folder with its own package.json config. If my-modules only consumes other node libraries than it can be outside the node_modules folder. You can also try using this if it can’t find your library.