mix npm.install (NPM v0.6.0)

Copy Markdown View Source

Install npm packages.

mix npm.install                         # Install all deps from package.json
mix npm.install lodash                  # Add latest version
mix npm.install lodash@^4.0             # Add with specific range
mix npm.install @types/node@^20         # Add scoped package
mix npm.install --frozen                # Fail if lockfile is stale (CI)
mix npm.install --production            # Skip devDependencies
mix npm.install eslint --save-dev       # Add to devDependencies
mix npm.install lodash react vue        # Add multiple packages

Resolves all dependencies using the PubGrub solver, writes npm.lock, and links packages into node_modules/.