Nexus builds NPM dependency Library

Time:2021-7-25

Install nexus

It is said that this step is the most difficult. Post a website
https://help.sonatype.com/rep…
I can’t download and load it directly. Anyway, I’m hard under Xunlei. It’s done!
Version 3.28.1-01

Nexus section

  1. After installation, find the bin directory and start it first
    nexus.exe /run
    The default port is 8081. The successful startup is as follows:
    Nexus builds NPM dependency Library
    The default password is randomly generated, and he will prompt for the specific directory
  2. Configuration warehouse (three)
    Nexus builds NPM dependency Library
    Optional and NPM are the three
    Nexus builds NPM dependency Library
    1) , hosted (private warehouse): used to publish NPM components developed by individuals

    Write a name. It's OK by default

    Nexus builds NPM dependency Library
    2) Proxy (proxy warehouse): you can proxy NPM and Taobao images

    Name and source. Without this package, you will pull it from this source and store it in the warehouse

    Nexus builds NPM dependency Library
    3) . group (combined warehouse): a warehouse that is open to the public. It collects the first two

    Remember to bring the first two in

    Nexus builds NPM dependency Library

    The warehouse is finished!

  3. NPM configuration
npm config set registry  http://npm IP address of the server where the private server is located: 8081 / repository / NPM group/

OK, it’s done!

Other notes:

  1. There is a token setting in security / realms. After setting it, the pulled package seems to have verification, and then it GG starts
  2. Check whether the setup is completed. Remember to clear the cache before NPM install

npm cache clean - f

PS: Yes, I know what I’m doing