To get npm Enterprise up and running on Microsoft Azure, you first need:
...then we'll need to:
- Set up and deploy an Ubuntu 14.04 LTS VM
- install Node.js and npm
- install npm Enterprise itself
- Set up endpoints for the admin panel, registry, and website
Let's get started!
The first step is to get a VM running. Follow this tutorial for getting an Ubuntu 14.04 LTS VM running.
While setting this up, make sure to:
- Pick a size that has at least 8 GB of RAM. We strongly recommend 16 GB.
- Take note of the name of the Security Group you assign. We'll need to edit it in Step 3.
Feel free to make any other configurations you wish. Once you are set, deploy your VM and move on to Step 2!
Now that you have a VM deployed, let's install npm and Node.js
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs sudo npm i -g npm@latest node -v && npm -v
sudo npm i npme -g --unsafe
To confirm that it worked, type
npme. If the install succeeded you should see the
npme help screen, which looks like this:
There are now 3 web services running on 3 ports on your VM. In order to access these outside of the VM, we'll need to create rules to allow them to be accessed. The ports we need to configure are:
Open your favorite web browser, access your server on port
8800, and follow the prompts to configure and start your appliance.
For more information on configuring npm Enterprise, read these docs.