A small utility to recursively run any npm command in any child directory that has a package.json
file excluding sub directories of node_modules
.
This package differs from the original fork in that this supports all other npm commands, and also additional parameters that can be passed in to the npm commands.
$ npm i -g recursive-npm
Replace npm
with recursive-npm
$ recursive-npm <command and arguments>
$ recursive-npm install
- Will run npm install recursively
$ recursive-npm install --production --package-lock
- Will not install dev dependencies, but will instead create package-lock.json
MIT