table of Contents
Creating vue terminal project
Installation node
official website to download the installation package, fool installation: https: //nodejs.org/zh-cn/In other source installation cnpm
>: npm install -g cnpm --registry=https://registry.npm.taobao.org
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
In cmd, cd to the next path you want to create a project, the implementation of VUE projectName the Create , create project /
Choose the bottom Manually SELECT Features (manual selection function),
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
- History mode using the router? Select Y
- Where you want to configure Babel, ESLint, etc. Where? Select In package.json
- Save it as a preset for future projects to use it? Select N (this default can not afford to clear the cache)
Upon completion can close cmd window, use pycharm to manage the project vue
pycharm project management vue
- Use pycharm open the project to create a good vue