How do I install package.json dependencies in the current directory using npm

I have a web app: fooapp. I have a package.json in the root. I want to install all the dependencies in a specific node_modules directory. How do I do this? What I want Lets say I have two widget dependencies. I want to end up with a directory structure like this: node_modules/ widgetA widgetB fooapp/ … Read more