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
複製代碼