6

How I can find out package installed globally with Yarn or npm? (I can't remember package installed with which one!)

let me describe more:

I had install Vuejs with help its installation document; On that described I can use tow way to install it:

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

and now I can remember how I instaled VueJS, with npm or yarn?! I have this problem with JHipster and Quasar Framework and Vuetify, after a while I forget how they had installed on my system! :-/

GLinBoy
  • 606
  • 1
  • 10
  • 20

1 Answers1

18

Check your folder have yarn.lock(installed with yarn) or package-lock.json/npm-shrinkwrap.json(installed with npm).

For global libraries, you can check lib of yarn

yarn global list

to see list global libraries installed with yarn

and checklist global libraries installed with npm

npm list -g
hong4rc
  • 3,999
  • 4
  • 21
  • 40