npm run <script>
Run arbitrary package scripts
Arguments
Name | Description |
---|
script | Script to run from your package.json |
Options
Name | Description |
---|
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |
--if-present | Npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json |
--silent | |
--ignore-scripts | If true, npm does not run scripts specified in package.json files |
--script-shell <script-shell> | The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands |
-- <args...> | |