pnpm
pnpm
包含 6.x 或更高版本
pnpm
recognize by default the configuration at .npmrc
and also the --registry
value. This means that you can follow the same commands described in npm replacing npm
by pnpm
.
See also pnpm Documentation - Settings - resolutionMode.
故障排除
大多数问题都可以通过查看 npm 故障排查列表来解决,因为大部分命令都具有很高的兼容性。