npm get registry // 查看源
npm config set registry xx // 切换源
🌰例子
npm config set registry https://registry.npmjs.org/ // 切换为npm
npm get registry // 查看源
npm config set registry xx // 切换源
🌰例子
npm config set registry https://registry.npmjs.org/ // 切换为npm