美文网首页
项目的搭建命令

项目的搭建命令

作者: nzjcnjzx | 来源:发表于2019-05-19 10:55 被阅读0次

使用脚手架创建项目

创建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

相关文章

网友评论

      本文标题:项目的搭建命令

      本文链接:https://www.haomeiwen.com/subject/ksufzqtx.html