Difference between revisions of "Npx --help"

From wikieduonline
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<pre>
 
npx --help
 
npm exec
 
  
Run a command from a local or remote npm package
+
npx --help
 +
[[npm exec]]
 +
 +
Run a command from a local or remote npm package
 +
 +
Usage:
 +
npm exec -- <pkg>[@<version>] [args...]
 +
npm exec --package=<pkg>[@<version>] -- <cmd> [args...]
 +
npm exec -c '<cmd> [args...]'
 +
npm exec --package=foo -c '<cmd> [args...]'
 +
 +
Options:
 +
[--package <pkg>[@<version>] [--package <pkg>[@<version>] ...]]
 +
[-c|--call <call>]
 +
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
 +
[-ws|--workspaces] [--include-workspace-root]
 +
 +
alias: x
 +
 +
Run "npm help exec" for more info
  
Usage:
 
npm exec -- <pkg>[@<version>] [args...]
 
npm exec --package=<pkg>[@<version>] -- <cmd> [args...]
 
npm exec -c '<cmd> [args...]'
 
npm exec --package=foo -c '<cmd> [args...]'
 
 
Options:
 
[--package <pkg>[@<version>] [--package <pkg>[@<version>] ...]]
 
[-c|--call <call>]
 
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
 
[-ws|--workspaces] [--include-workspace-root]
 
 
alias: x
 
 
Run "npm help exec" for more info
 
</pre>
 
  
 
== See also ==
 
== See also ==

Latest revision as of 15:58, 27 May 2022

npx --help
npm exec

Run a command from a local or remote npm package

Usage:
npm exec -- <pkg>[@<version>] [args...]
npm exec --package=<pkg>[@<version>] -- <cmd> [args...]
npm exec -c '<cmd> [args...]'
npm exec --package=foo -c '<cmd> [args...]'

Options:
[--package <pkg>[@<version>] [--package <pkg>[@<version>] ...]]
[-c|--call <call>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]

alias: x

Run "npm help exec" for more info


See also[edit]

Advertising: