You can get your private npm running in no time at all. There are zero installation requirements and the workflow is identical to how you would operate the public npm. Aquire a private npm tier from the billing page in webops.

Sign up to private npm Note that your public npm password is only used to verify ownership. Your public npm user document will be replicated to your private npm.

Like the public npm your private npm has two interfaces. One on the command line and a visual interface. First the command line interface is shown, after the visual interface is demonstrated. Input your private npm subdomain below so each command is tailored to your needs.

Provide your private subdomain

You can configure npm in two ways, the simple config will use a utility module created by Nodejitsu. In the extended config you will set the options manually. The workflow of npm will not change, only three options need to be configured.

Simple configuration

Nodejitsu-npm is a simple utility module to get you started with our private npm, it will configure npm to work against your private subdomain. The first command might need 'sudo' to work properly.

$ [sudo] npm install -g nodejitsu-npm copy
$ nodejitsu-npm setup subdomain copy
Configure npm with Nodejitsu utility
Extended configuration

If you like additional control over configuring npm, execute the three commands below. Add --loglevel info to get additional feedback.

$ npm config set always-auth true copy
$ npm config set registry copy
$ npm config set ca "" copy
Configure npm against private npm

You npm client is now ready to upload packages and/or modules to your private npm. For demonstration purposes create a new private project (or simply use an existing) in an empty folder and afterwards simply run:

$ npm publish copy
Demo private package publish

Installing from your private npm is completely identical to how you would install a public package. Replace myprivate with your package name or simply install a public package - like jitsu - with npm install jitsu.

$ npm install myprivate copy
Demo private package publish

The visual interface for your private npm can be found at where subdomain should be replaced with your subdomain. You access the private npm with your public npm credentials.

If you published a private module earlier on it should be visible in the interface under packages.

Visual interface private npm

The maintained tab under packages will also show your public maintained modules.

Your private npm allows for unlimited users, initially only the owner has access to the private npm. You can easily add your team members by using the interface. Administrator members will also be able to manage modules.