cli icon indicating copy to clipboard operation
cli copied to clipboard

[DOCS] Please provide clear documentation on how devDependencies installation will be triggered when installing dependencies through the git protocol.

Open xqin opened this issue 1 year ago • 0 comments

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

image

https://github.com/npm/pacote/blob/main/lib/git.js#L167-L172

image

Potential Solution

No response

Affected URL

No response

xqin avatar Apr 01 '24 23:04 xqin