cnpm i create-myvue -g
步骤 1: create-myvue 项目名
步骤 2:根据提示进入目录下载模块启动测试
🔥 npx create-myvue my-project
或
🔥 yarn create myvue my-project
脚手架的常见使用步骤会分成两步: 第一步是全局安装(注:全局目录)
npm i @vue/cli create-react-app -g
第二步执行cli命令
vue create my-project create-react-app my-project
如果想避免模块全局安装,可以尝试 npx , npx会先检查本地依赖包有没有可执行文件,如果找不到就会去远程仓库下载,并且会下载到临时文件,在使用完就删除,有种阅后即焚的赶脚
npx create-react-app my-project yarn create react-app my-project
See the LICENSE file for license rights and limitations (ISC).