Dependency Diagnostics is a Visual Studio Code extension that automatically checks whether the dependencies declared in all package.json files in your workspace are installed and match the expected versions, making it suitable for monorepos and multi-package repositories.
If a dependency is missing or out of sync, Dependency Diagnostics highlights it and lets you fix the issue quickly.
- Detects missing dependencies
- Detects version mismatches between
package.jsonand installed packages innode_modules - Works automatically across the entire workspace (no need to open files)
- Shows a notification to install all dependencies
- Provides diagnostics and quick fixes to install dependencies
This extension contributes the following settings:
Ignores package.json files inside directories that match the configured glob patterns. node_modules directories are ignored by default (no configuration needed).
{
"dependencyDiagnostics.ignoredDirectories": [
"**/.angular/**",
"client/**"
]
}Dependency Diagnostics automatically detects the following package managers for installing dependencies:
npmyarnpnpm
The extension checks the following sections of package.json:
dependenciesdevDependencies
To avoid false positives and unnecessary processing, Dependency Diagnostics ignores package.json files located in the following folders:
node_modules.angular
Issues and pull requests are welcome.

