Knip v5 requires Node.js v18.6 or higher. Or Bun.
The recommended way to install Knip is by using your package manager:
@types/node as peer dependencies to increase
compatibility with your project (they are likely already in your
knip script to your
Now you can run Knip to lint your project:
Knip will lint your project and output unused files, dependencies and exports.
Alternatively, try Knip without adding it to your project: