A Profile
Vue CLI is a complete system based on Vue.js rapid development, there are several independent parts.
. 1 the CLI ( @vue/cli
) is a global installation package npm, provided in the terminal vue
command. (Vue create, vue serve, etc.)
2 CLI service ( @vue/cli-service
) is a development environment dependent. It is a npm package locally installed at each @vue/cli
project you create. CLI service is built on top of webpack and webpack-dev-server's.
3 CLI plug-in is optional functionality to your Vue project npm package, such as Babel / TypeScript translation, ESLint integration, unit testing and end-to-end testing.
(For example, when you create a project manual, Vue Cli 3 adds @ vue / cli-plugin-babel, @ vue / cli-plugin-eslint, @ vue / cli-plugin-unit-jest and other plug-ins)
Two assembling
Vue CLI package by the name vue-cli
changed @vue/cli
.
1 If you have already installed an older version of the global vue-cli
(1.x or 2.x), you need to uninstall.
npm uninstall -g vue-cli# OR yarn global remove vue-cli
2 installed package
npm install -g @vue/cli # OR yarn global add @vue/cli
Check the version 3
--version view