'Vue version not in any npm list

I have sometime to code with vue and node. I returned to my windows 10 system and using git bash

I have node in my windows system :

$ node -v
v12.14.1

Then I do

$ npm vue -v
6.13.4

$ npm vuex -v
6.13.4

So, vue is installed,

But when I do npm list I dont see any vue package and when I do npm list -g I get

$ npm list -g
C:\Users\spiro\AppData\Roaming\npm
`-- (empty)

So is vue installed in my system or not? How can I confirm and how can I locate the folders?



Solution 1:[1]

npm vue -v gives the npm version, the vue option is ignored, to check if vue cli is installed try:

vue --version

if it doesn't exist, install it using the following command :

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

Solution 2:[2]



My code?npm list vue
C:\Users\99195\Desktop\vue>npm list vue
99195@ C:\Users\99195
`-- (empty)

finally code: npm list vue -g
C:\Users\99195\Desktop\vue>npm list vue -g
D:\Program Files\nodejs\node_global
+-- @vue/[email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
|   `-- @vue/[email protected]
|     `-- [email protected] deduped
`-- [email protected]
  `-- @vue/[email protected]
    `-- [email protected] deduped

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Penny Liu
Solution 2 user15882321