npm update vue cli code example
Example 1: vue cli upgrade
npm update -g @vue/cli
# OR
yarn global upgrade --latest @vue/cli
Example 2: update vue version npm
npm install -g @vue/cli --save
# OR
yarn global upgrade --latest @vue/cli
npm update -g @vue/cli
# OR
yarn global upgrade --latest @vue/cli
npm install -g @vue/cli --save
# OR
yarn global upgrade --latest @vue/cli