View Source mix nodelix.npm (nodelix v1.0.0-alpha.13)
Invokes npm
with the provided arguments.
Warning
This is a pre-release version. As such, anything may change at any time, the public API should not be considered stable, and using a pinned version is recommended.
Usage:
$ mix nodelix.npm TASK_OPTIONS NODE_ARGS
Example:
$ mix nodelix.npm install --save-dev tailwindcss esbuild
Refer to Mix.Tasks.Nodelix
for task options and to Nodelix
for more information
on configuration and profiles.
Options
--version
- Node.js version to use, defaults to latest known LTS version (22.12.0
)
Flags to control this Mix task must be given before the node arguments:
$ mix nodelix.npm --version 18.18.2 install --save-dev tailwindcss esbuild