den123
den123

Reputation: 801

NodeJS: how to install dependencies for all modules (packages)?

I have project (NodeJS):

p
--modules
----m1
------foo.js
------package.json
----m2
------bar.js
------package.json
package.json

Each package.json has own dependences. Is it possible to install all dependencies by one command from root folder "p"? Something like this:

npm install --all

Upvotes: 0

Views: 3036

Answers (1)

Weston
Weston

Reputation: 143

npm install

This will install all dependencies. Nothing extra needed just run inside 'p'.

Upvotes: 2

Related Questions