单点登录操作流程
首先接入星重私有NPM仓库
bashnpm config set registry=https://nexus.starcharge.com/repository/npm-public/ npm config set always-auth true
登录npm仓库并设置凭证
bashnpm login
输入用户名,密码以及自己的企业邮箱
bash用户名: npm-user 密码: wb123456
下载sso工具包
bashnpm i @star-charge/auth-utils
配置host映射地址
我是直接修改的hosts文件,因为电脑没有权限,需要使用echo对文档直接读写
文件路径
C:\Windows\System32\drivers\etc\hosts
后续启动项目,就需要使用配好的路径