其主要原因在于npm镜像源的问题,安装完nodejs之后默认镜像源为淘宝镜像源,使用npm命令或者nrm命令切换镜像源至npm官方镜像源即可
配置为淘宝镜像
npm config set registry http://registry.npm.taobao.org/
还原默认镜像
npm config set registry https://registry.npmjs.org
查看当前源
npm get registry
其主要原因在于npm镜像源的问题,安装完nodejs之后默认镜像源为淘宝镜像源,使用npm命令或者nrm命令切换镜像源至npm官方镜像源即可
npm config set registry http://registry.npm.taobao.org/
npm config set registry https://registry.npmjs.org
npm get registry
2024-06-30 22:06:34
2024-06-30 22:06:14
2024-06-30 22:06:12
2024-06-30 22:06:09
2024-06-30 22:06:08
2024-06-30 22:06:08
2024-06-30 22:06:57
2024-06-30 22:06:55
2024-06-30 22:06:53
2024-06-30 22:06:51