npm-installnpm-workspaces

npm (v7.18.+) install, --workspaces flag needed?


If I have a project with workspaces and use npm install on the root folder, do I need the --workspaces flag to install all workspaces, or is it used automatically?

It looks to me like npm install already does this automatically.


Solution

  • Yes you're right, npm install will install workspaces by default.

    More info: