How to permanently exclude specific transitive dependencies in NPM

Viewed 1931

I have a Vue.js project with only 24 direct dependencies in the package.json. That results in 1230 total dependencies in the package-lock.json.

One of the transitive dependencies has a license that is not allowed in my organization. I did some research on Google on how to exclude transitive dependencies in NPM, but I couldn't find anything useful.

In Maven (Java world) there is an optional exclusions list for each direct dependency. Is there something similar for NPM? How can I permanently remove a transitive dependency from my project?

0 Answers
Related