npm init All In One


npm init All In One

npm init & npm create

npm init [--force|-f|--yes|-y|--scope]
npm init <@scope> (same as `npx <@scope>/create`)
npm init [<@scope>/] (same as `npx [<@scope>/]create-`)

aliases: create, innit

$ npm init vite@latest
# vue3-ts-app & vue-ts

# 等价于
$ npm init vite@latest vue3-ts-app -- --template vue-ts
# 等价于
$ npm create vite@latest vue3-ts-app -- --template vue-ts
      
# 等价于
$ npm innit vite@latest vue3-ts-app -- --template vue-ts
      

https://docs.npmjs.com/cli/v8/commands/npm-init

demo

refs


Flag Counter

?xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有??xgqfrms, 禁止转载 ???,侵权必究??!