I want to do something like this, so npm install also installs the package.json of ../somelocallib or more importantly its dependencie
npm install
package.json
../somelocallib
This works for me.
Place the following in your package.json file
"scripts": { "preinstall": "npm install ../my-own-module/" }