It is said that this step is the most difficult. Post a website
I can’t download and load it directly. Anyway, I’m hard under Xunlei. It’s done!
- After installation, find the bin directory and start it first
The default port is 8081. The successful startup is as follows:
The default password is randomly generated, and he will prompt for the specific directory
Configuration warehouse (three)
Optional and NPM are the three
1) , hosted (private warehouse): used to publish NPM components developed by individuals
Write a name. It's OK by default
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
3) . group (combined warehouse): a warehouse that is open to the public. It collects the first two
Remember to bring the first two in
The warehouse is finished!
- 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!
- There is a token setting in security / realms. After setting it, the pulled package seems to have verification, and then it GG starts
- 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