Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Vue CLI installation


May 07, 2021 Vue CLI



About the old version

If you already have an older version of vue-cli (1.x or 2.x) installed, you will need to uninstall vue-cli-g or yarn global remove vue-cli through npm first.

The node version requirements

The Vue CLI requires node .js 8.9 or later (recommended 8.11.0 plus). Y ou can use nvm or nvm-windows to manage multiple Versions of Node on the same computer.

You can install this new package using any of the following commands:

npm install -g @vue/cli
# OR
yarn global add @vue/cli

Once installed, you can access the vue command from the command line. You can verify that it was installed successfully by simply running vue to see if you have shown a help message for all available commands.

You can also use this command to check that its version is correct:

vue --version