The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Optional dependency removed by dedupe
Please tag this as
When I have optional dependencies in
npm dedupe will remove them from lock file. Is this expected behavior? This looks weird because next time I run
npm install they will be add back to the lock file.