Vue3刚发布不久,官方文档中推荐的创建方法之一就是通过脚手架Vite来创建一个vue3项目,对应的命令为:

npm init vite-app hello-vue3 # OR yarn create vite-app hello-vue3

其实执行 npm init vite-app 时,npm 会补全模块名为 create-vite-app 并执行 npx create-vite-app

npm init vite-app hello-vue3

# same as
npx create-vite-app hello-vue3

参考:
小tips:你不知道的 npm init

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐