cli
cli copied to clipboard
[DOCS] Please provide clear documentation on how devDependencies installation will be triggered when installing dependencies through the git protocol.
Is there an existing issue for this?
- [X] I have searched the existing issues
This is a CLI Docs Problem, not another kind of Docs Problem.
- [X] This is a CLI Docs Problem.
Description of Problem
When installing packages through the git protocol, the document only mentions that prepare will trigger the installation of dependencies and devDependencies. However, the actual code implementation is not limited to this stage, so please clearly indicate in the document all stages that can trigger the installation of devDependencies.
https://docs.npmjs.com/cli/v10/using-npm/scripts#life-cycle-scripts
https://github.com/npm/pacote/blob/main/lib/git.js#L167-L172
Potential Solution
No response
Affected URL
No response