I have an app using the file structure
package.json
src/main/
- webapp
- java (containing my API)
My API is restricted so that it can only dispatch files from within src/main/webapp
, as a result I need my node_modules
to install within that folder.
If I run npm install
I get the following:
package.json
node_modules/
src/main/
- webapp
- java (containing my API)
Is there a way I can change this so it installs by default in the following structure?
package.json
src/main/
- webapp
- node_modules/
- java (containing my API)
If possible I'd rather not have a global environment variable as I work on multiple apps on this machine and I don't want them all installing to this apps node_modules