有没有办法检查 npm 是否安装正确,因为我在安装过程中收到了很多警告?

Is there a way to check if npm is installed properly since I got a lot of warnings during installation?

我在使用 sudo 命令安装 node 后安装了 npm。我安装了它,但收到了很多警告。我接下来 运行 npm audit fix,因为这是推荐的。我现在不确定它是否安装正确。版本似乎还可以 (8.4.1.)

警告真的不是问题,很常见。

警告可能显示依赖性警告、不受支持的警告。你不用担心。

如果警告是基于过时的依赖项,您可以 运行 ncu -u 自动升级它们。

如果您不想在安装时看到警告 使用:npm install --silent