vue create hello-cloud 创建项目时设置项目位置,比如我要设置到D盘的根目录,具体操作步骤如下:
1.win+r(即cmd进入命令行)
2.D:
3.vue create hello-cloud
C:\Users\18710>D:
D:\>vue create hello-cloud
Vue CLI v4.5.15
? Please pick a preset: Default (Vue 3) ([Vue 3] babel, eslint)
Vue CLI v4.5.15
✨ Creating project in D:\hello-cloud.
🗃 Initializing git repository...
⚙️ Installing CLI plugins. This might take a while...
> yorkie@2.0.0 install D:\hello-cloud\node_modules\yorkie
> node bin/install.js
setting up Git hooks
done
> core-js@3.19.3 postinstall D:\hello-cloud\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> ejs@2.7.4 postinstall D:\hello-cloud\node_modules\ejs
> node ./postinstall.js
added 1264 packages from 656 contributors in 73.857s
84 packages are looking for funding
run `npm fund` for details
🚀 Invoking generators...
📦 Installing additional dependencies...
added 70 packages from 77 contributors in 8.319s
91 packages are looking for funding
run `npm fund` for details
⚓ Running completion hooks...
📄 Generating README.md...
🎉 Successfully created project hello-cloud.
👉 Get started with the following commands:
$ cd hello-cloud
$ npm run serve
D:\>cd hello-cloud
D:\hello-cloud>npm run serve
> hello-cloud@0.1.0 serve D:\hello-cloud
> vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
DONE Compiled successfully in 1537ms 上午10:53:46
App running at:
- Local: http://localhost:8080/
- Network: http://10.0.92.103:8080/
Note that the development build is not optimized.
To create a production build, run npm run build.