使用脚手架创建项目
创建vue的项目
- npm install -g cnpm --registry=https://registry.npm.taobao.org
- cnpm install vue
- cnpm install --global vue-cli
- vue init webpack my-project / vue init webpack-simple my-projectv
- cnpm install
- npm run dev
创建angular项目
- npm install @angular/cli –g
- ng new project-name
- npm install
- npm start / ng serve
创建react项目
- npm install -g create-react-app
- create-react-app project-name
- npm start
创建express项目
- cnpm install express express-generator -g
- express project-name
- npm install
- npm start
创建浏览器同步的项目
- npm install browser-sync -g
- npm init
- package.json 编辑 start: "browser-sync start --server --file '**'"
- npm start
koa搭建项目
- npm install koa-generator -g
- koa koa_demo
网友评论