How to load private git repository as package at azure website? How to load private git repository as package at azure website? express express

How to load private git repository as package at azure website?


If your private repo is on Github, you can use Personal Access Tokens.

  1. Create a token for your service, let's say 'azure-website' at https://github.com/settings/tokens/new. Make sure to copy or memorize the token.

  2. Add the repo to your project dependencies via npm install --save like this:

    npm install --save 'https://your_token@github.com/user/private-repo.git'

    where your_token is your private token.