Search code examples
npmyarnpkg

How do I see a list of yarn installed dependencies?


When I install dependencies from package.json using npm install, I can see a list of all installed dependencies under the node_modules directory. However, the same is not true for yarn. When I do a yarn/yarn install, I see a .yarn-integrity file. How can I see a list of installed dependencies?


Solution

  • For Yarn 2 and onwards you can use yarn info --name-only.

    For Yarn 1 you can use yarn list.