Tips,  Tools

Listing global npm installed packages

If you are moving your global packages over to yarn, a single npm command lists every globally installed package with its version.

Listing global npm installed packages

Now that yarn is all the hype, I am guessing a lot of people would want to reinstall their global packages using yarn. In order to find the package names and versions of globally installed packages all you need to do is:

npm ls -g --depth=0

Thanks for reading! To stay updated on my latest posts and thoughts, follow me on Twitter @masimplo

Subscribe to masimplo.com

Get the latest posts delivered right to your inbox