To get npm Enterprise up and running on Microsoft Azure, you first need:
...then we'll help you to:
- Set up and deploy an Ubuntu 14.04 LTS VM.
- Install Node.js and npm.
- Install npm Enterprise.
- Set up endpoints for the admin panel, registry, and website.
Let's get started!
Follow this tutorial for setting up an Ubuntu 14.04 LTS VM.
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.
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.