npm help <sub-command>

查看子命令的简要帮助:npm <sub-command> -h

示例:

查看子命令的详细帮助:npm help <sub-command>

示例: