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
Actually, as of npm 2.0, there is support now local paths (see here).