How can I run npm install
in subfolder via command line (single command) if pointer in the main folder and must remain there?
main_folder <- pointer is here
- node_modules
- package.json
sub_folder <- npm install here
- node_modules
- package.json
With the prefix
argument you can specify an installation location:
npm install --prefix <sub_folder> <module_to_install>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With