When I run:
npm install my-app
The app is installed into node_modules/my-app/...
I also tried
npm install -g my-app
You ought to have a package.json in your current directory.
package.json
Then write npm install --save-dev or npm install --save and it will install to the node_modules directory
npm install --save-dev
npm install --save