npm Community Forum (Archive)

The npm community forum has been discontinued.

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

A typo in the package-locks doc?

The package A’s package.json file in the package-locks document has a dependency on B, “<0.0.1” but the document entertains the idea of B publishing a new version 0.0.2 that would be automatically included by A in new installations. I wonder if A’s package.json should have a dependency on B, “>=0.0.1”.

Yarn can consume the same package.json format as npm, and can install any package from the npm registry. When you run either yarn or yarn add , Yarn will generate a yarn.lock file within the root directory of your package. Joker 2019 Red Coat You don’t need to read or understand this file - just check it into source control.