我怎样才能看到 npm install 后出现的所有 'npm WARN'?

How can I see all the 'npm WARN' that comes up after npm install?

我想查看 npm install 后出现的警告,但不调用 npm install。有我可以使用的命令吗?

您可以使用 npm install --dry-run

report in the usual way what the install would have done without actually installing anything. Npm install

您也可以使用 npm audit 作为安全警告。 Npm audit