Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support npm-init and npx commands #37

Closed
baruchiro opened this issue Mar 19, 2023 · 2 comments · Fixed by #89
Closed

Support npm-init and npx commands #37

baruchiro opened this issue Mar 19, 2023 · 2 comments · Fixed by #89
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@baruchiro
Copy link
Collaborator

baruchiro commented Mar 19, 2023

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 named create-<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 local node_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.

@baruchiro baruchiro added enhancement New feature or request good first issue Good for newcomers labels Mar 19, 2023
baruchiro pushed a commit that referenced this issue Mar 19, 2023
@baruchiro baruchiro changed the title Support npx commands Support npm-init and npx commands Mar 29, 2023
@hagarfisher
Copy link
Contributor

hagarfisher commented May 16, 2023

I'd like to try, can you assign to me?

@baruchiro
Copy link
Collaborator Author

Sure! Thank you!

Please let me know if you need any help or questions.

baruchiro added a commit that referenced this issue Jun 11, 2023
Support `npx`, `npm exec`, `npm create`, `npm init`, `yarn create`.

Close #37

---------

Co-authored-by: Baruch Odem <baruch.odem@checkmarx.com>
Co-authored-by: Baruch Odem (Rothkoff) <baruchiro@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants