For starters, my question is not same as Install npm module from gitlab private repository
We maintain our own npm modules, each in its own sub-folder and together compose a repo, say my_node_modules.git, so is it possible to install a single npm module from it, i.e. is there a command/tool I can use to
npm i -S git+ssh://git@mydomain/path/my_node_modules.git/A_module/
npm i -S git+ssh://git@mydomain/path/my_node_modules.git/B_module/
If not what other solution I have to install that individual private module ?
---- update ----
After doing some research I found I am not alone here.
So npm is against it, https://github.com/npm/npm/issues/2974
yarn is considering it, https://github.com/yarnpkg/yarn/issues/4725
I really don't like the idea here npm install package from github repo subfolder, the postinstall sript
I am thinking about using git subtree. I leave my question here to see if someone can come up some ideas.