npm镜像源查看和配置
转载请注明出处:
- 使用
npm config get registry命令:npm config get registry
显示当前配置的默认注册表地址。
- 使用
npm config list命令:npm config list
列出所有的 npm 配置,包括注册表设置。
- 使用
npm config get命令查看特定的配置:npm config get registry npm config get proxy npm config get https-proxy
- 使用
npm info命令:npm info registry

显示当前使用的注册表信息。
5. 检查 npm config edit 输出:
运行 npm config edit 会打开一个文本编辑器,可以直接查看和编辑配置。
