NPM Enterprise gives you the ability to set up your private NPM.
Sinopia is a private/caching npm repository server. It allows you to have a local npm registry with zero configuration. Sinopia keeps its own small database and if a package doesn't exist in the database, it asks npmjs.org for it keeping only those packages you use. The Use cases for using Sinopia is as follows :
Install sinopia globally using command npm install -g sinopia. It will install sinopia in your system as shown below.
Now start the sinopia server using the command sinopia. If your config.yaml file is in another location it will show the exact path and then the address of your npm packages (By default http://localhost:4873/).
When you navigate to http://localhost:4873/ you will see something like below.
You need to remember one thing is to set the NPM registry URL pointing to your Private NPM server and not the public registry. For that you need to run the command npm set registry http://localhost:4873.
You can add user to your Private NPM server using the command npm adduser --registry http://localhost:4873. It will ask for Username, Password and Email address as shown below.
Please Like and Share the CodingDefined.com Blog, if you find it interesting and helpful.