[Vuejs]-Npm i -g vue-cli is not installing vue.js

0👍

The package you installed have been deprecated, as explained here

https://www.npmjs.com/package/vue-cli

Check the new one

https://cli.vuejs.org/guide/installation.html

So, if you really want to use Vue CLI, you need to run the following

npm install -g @vue/cli

# OR

yarn global add @vue/cli

But, please, note the following (from https://cli.vuejs.org/guide/)

⚠️ Vue CLI is in Maintenance Mode!

For new projects, it is now recommended to use create-vue to scaffold
Vite-based projects. Also refer to the Vue 3 Tooling Guide for the
latest recommendations.

So, for new projects, you should opt for the new package instead

https://github.com/vuejs/create-vue

-1👍

Try this:

npm install -g @vue/cli

Leave a comment