-
Notifications
You must be signed in to change notification settings - Fork 22
Description
npm-init
npm init <initializer>
can be used to set up a new or existing npm package.
initializer
in this case is an npm package namedcreate-<initializer>
, which will be installed by npx, and then have its main bin executed -- presumably creating or updating package.json and running any other initialization-related operations.
(from npm documentation)
npx
Executes
<command>
either from a localnode_modules/.bin
, or from a central cache, installing any packages needed in order for<command>
to run.
npx
will install a package, if needed, then will run its CLI.
We should support npx
commands, such as here: https://stackoverflow.com/a/59189242/839513.
Note that in contrast to the regular npm
command, in npx
will be just one package. The other arguments will be the package's CLI arguments.