---
title: How to stop an npm dependency being installed?
---

Ban a dependency from being used anywhere in your monorepo.

### 1. Add a version group

```json title=".synopkgrc.json"
{
  "versionGroups": [
    {
      "dependencies": ["never-gonna"],
      "isBanned": true
    }
  ]
}
```

### 2. Look for mismatches

Now when you run any synopkg command, banned dependencies will be listed:

```bash
synopkg list
```

And can be removed:

```bash
synopkg fix-mismatches
```
