npm Community Forum (Archive)

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 cli.

When I have optional dependencies in package-lock.json, running 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.