node -v
复制代码
码云是一个管理代码比较好的仓库,目的是把咱们本地开发好的项目同步到码云上,同时能够对咱们的代码进行版本控制。vue
git clone + '克隆地址'
复制代码
npm install --global vue-cli
复制代码
vue init webpack '项目名称'
复制代码
wenty:Desktop wentingting$ vue init webpack Learn
? Target directory exists. Continue? Yes
? Project name learn
? Project description A Vue.js project
? Author wenty <490550135@qq.com>
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recom
mended) npm
复制代码
git status
复制代码
git add .
复制代码
git commit -m 'project-init'
复制代码
git push
复制代码