npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Document says that "specifying both a bin path and setting directories.bin is an error" while npm is doing that

Document for directories.bin says that “specifying both a bin path and setting directories.bin is an error”, while npm’s package.json is doing that.
It is likely either the document or npm’s package.json is incorrect.