Skip to content
Nx Cloud CI is in private beta 10.6× faster average CI time with 79% less compute. Join the beta

▸ installPackagesTask(tree, ensureInstall?, cwd?, packageManager?): void

Runs npm install or yarn install. It will skip running the install if package.json hasn’t changed at all or it hasn’t changed since the last invocation.

NameTypeDescription
treeTreethe file system tree
ensureInstall?booleanensure install runs even if package.json hasn’t changed, unless install already ran this generator cycle.
cwd?string-
packageManager?PackageManager-

void