[英]How to find package installed globally with YARN or npm
How I can find out package installed globally with Yarn or npm? 如何找到通过Yarn或npm全局安装的软件包? (I can't remember package installed with which one!) (我不记得安装了哪个软件包!)
let me describe more : 让我描述更多 :
I had install Vuejs with help its installation document; 我已经在安装文档的帮助下安装了Vuejs。 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?! 现在我还记得我是如何使用npm或yarn安装VueJS的! I have this problem with JHipster and Quasar Framework and Vuetify , after a while I forget how they had installed on my system! 一段时间后,我忘记了JHipster和Quasar Framework和Vuetify的问题 ,而忘记了它们是如何在系统上安装的! :-/ :-/
Check your folder have yarn.lock
(installed with yarn
) or package-lock.json
/ npm-shrinkwrap.json
(installed with npm
). 检查您的文件夹中是否包含yarn.lock
(与yarn
yarn.lock
安装)或package-lock.json
/ npm-shrinkwrap.json
package-lock.json
(与npm
安装)。
For global libraries, you can check lib of yarn
对于全局库,可以检查yarn
lib
yarn global list
to see list global libraries installed with yarn
查看列出安装了yarn
全局库
and checklist global libraries installed with npm
和清单清单与npm
安装的全局库
npm list -g
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.