一.查看自己有没有安装npm。
- 在cmd命令窗口里面键入npm -v .如果出现下面截图,正面已经安装了npm。npm安装node的时候默认已经安装。

二.查看源
-
在命令行键入
npm config get registry
三.配置源
- 配置淘宝镜像源
npm config set registry https://registry.npm.taobao.org- 配置官方源
npm config set registry https://registry.npmjs.org/
本文指导你如何检查npm是否已安装,查看当前源并配置为淘宝镜像和官方源,以提高软件包下载速度。
一.查看自己有没有安装npm。

二.查看源
在命令行键入
npm config get registry
三.配置源
npm config set registry https://registry.npm.taobao.orgnpm config set registry https://registry.npmjs.org/
被折叠的 条评论
为什么被折叠?