Setting up the environment is relatively simple. After creating the warehouse and roles, perform the following operations
Get the previous repository path
npm config get registry
Set the warehouse path to taobao
npm config set registry https://registry.npm.taobao.org/
Set the repository path to nexus private server address
npm config set registry http://localhost:8081/repository/hhb-group/
# Log on nexus private server
npm login -registry=http://localhost:8081/repository/hhb-hosted/
# Publish to Nexus Private server
npm publish -registry=http://localhost:8081/repository/hhb-hosted/
# pull library from private server
npm install typescript
Copy the code