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

npm create XXX #91

Open
dcharlie123 opened this issue May 11, 2023 · 0 comments
Open

npm create XXX #91

dcharlie123 opened this issue May 11, 2023 · 0 comments

Comments

@dcharlie123
Copy link
Owner

dcharlie123 commented May 11, 2023

npm init 文档有写。create 其实就是 init 的一个别名。
也就是说 npm create xxx 相当于 => npx create-xxx相当于 create-xxx,即会去执行bin下的create-xxx

npm init foo -> npx create-foo
npm init @usr/foo -> npx @usr/create-foo
npm init @usr -> npx @usr/create

demo可以查看learning_resource/npmcreate,clone到本地后npm link
执行create-dch,npm init dch,npm create dch这3个命令试试

@dcharlie123 dcharlie123 changed the title npm create vite npm create XXX May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant