Skip to content
This documentation is for v14 alpha, the docs for v13 stable are archived.

How to stop an npm dependency being installed?

How to stop an npm dependency being installed?

Ban a dependency from being used anywhere in your monorepo.

1. Add a version group

{
"versionGroups": [
{
"dependencies": ["never-gonna"],
"isBanned": true
}
]
}

2. Look for mismatches

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

syncpack list

And can be removed:

syncpack fix-mismatches