1、设置私服地址
npm config set registry url(私服地址)
2、查看私服地址
npm config get registry
3、npm登录
npm login
4、查看是否登录
npm whoami
5、npm清理缓存
npm cache clean
npm config set registry url(私服地址)
npm config get registry
npm login
npm whoami
npm cache clean