Vue- project creation and management

Creating vue terminal project

  1. Installation node
    official website to download the installation package, fool installation: https: //nodejs.org/zh-cn/

  2. In other source installation cnpm

    >: npm install -g cnpm --registry=https://registry.npm.taobao.org
  3. Installation vue project scaffolding

    >: cnpm install -g @vue/cli

    NOTE: When 2 or 3 terminal installation fails, repeat step npm failed cache may be emptied

    npm cache clean --force
  4. In cmd, cd to the next path you want to create a project, the implementation of VUE projectName the Create , create project /1576832531473

  5. Choose the bottom Manually SELECT Features (manual selection function),1576832740314

  6. Use spaces to choose Babel, Vuex, Router, Babel can ES6 code is identified various browsers; in vue, we can use vuex to save state values we need to manage, once the value is modified, the value of all the local references will automatic updates; Router is Vue.js official route manager

    1576832831707

  7. History mode using the router? Select Y1576833182553
  8. Where you want to configure Babel, ESLint, etc. Where? Select In package.json1576833324043
  9. Save it as a preset for future projects to use it? Select N (this default can not afford to clear the cache)1576833382813
  10. Upon completion can close cmd window, use pycharm to manage the project vue

pycharm project management vue

  1. Use pycharm open the project to create a good vue
  2. 1576834156292
  3. img

Guess you like

Origin www.cnblogs.com/shenblog/p/12074635.html