// 查看npm镜像源
npm config get registry
// 设置npm镜像源为nodejs官方
npm config set registry https://registry.npmjs.org/
// 设置npm镜像源为淘宝镜像
npm config set registry https://registry.npmmirror.com
也可以设置为其他
// 查看npm镜像源
npm config get registry
// 设置npm镜像源为nodejs官方
npm config set registry https://registry.npmjs.org/
// 设置npm镜像源为淘宝镜像
npm config set registry https://registry.npmmirror.com
也可以设置为其他
本文标题:npm
本文链接:https://www.haomeiwen.com/subject/cxqmhjtx.html
网友评论