a vagrant setup for trialing npm Enterprise
Want to use npm, but behind a firewall? npm offers npm Enterprise as a way to replicate the npm Public Registry, run it behind a firewall, allowing for:
- use/publish private packages
- use/publish public packages
- whitelist/blacklist public packages
To get up and running all you'll need is:
- Install and/or retrieve all the Prerequisites
- Type
vagrant up
in your terminal - Open
localhost:8800
in your browser - You'll see a screen that looks like this
- Click
Advanced
. It will show another panel that looks like this - Click
Proceed to localhost(unsafe)
(it's safe. i promise 😄) - You'll see a screen that looks like this
Type
localhost
and then clickUse Self-Signed Certificate
- You'll see a screen that asks for your email address and License key, type those in and press the button to continue
- You'll see a screen that looks like this
Replace what is pre-filled with:
- Full URL of npm Enterprise registry:
localhost:8080
- Full URL of npm Enteprise website:
localhost:8081
- Full URL of npm Enterprise registry:
- Scroll down until you see a section called "Authentication" that looks like the image below. Select
Open
. - Save. You'll see a dialog to restart your service. Click Restart Now.
- Visit
localhost:8081
. You have the npm website running! You registry is running atlocalhost:8081