首先第一步確認(rèn)安裝了node.打開cmd茉继,輸入命令
node -v
npm install -g -vue -cli 安裝
vue init webpack my-project 新建一個(gè)項(xiàng)目
npm run dev 運(yùn)行
? Install vue-router? (Y/n) y是否使用vue-router;
? Use ESLint to lint your code? (Y/n) y是否使用ESLint;
? Pick an ESLint preset (Use arrow keys)
? Standard (https://github.com/feross/standard)
Airbnb (https://github.com/airbnb/javascript) none (configure it yourself)
這里選擇Standard (https://github.com/feross/standard)
? Setup unit tests with Karma + Mocha? (Y/n) n是否需要單元測試;
Setup e2e tests with Nightwatch? (Y/n) n是否需要單元測試您宪;