Is there a way to run npm install
but skip a particular dependency?
Something like:
npm install --skip=lodash --skip=rxjs
In my case, I have some developer tooling and some dependencies may not actually be in the NPM registry yet, so I want to skip those.
I am looking to skip installation of a particular dependency, and put a dummy package in its place.
Assuming this feature does not exist yet, I filed a related feature request on the NPM community forum: https://npm.community/t/allow-npm-install-to-work-with-missing-dependencies/1526