How to correctly access Azure AI Vision Face Client SDK?

Metamind systems 0 Reputation points
2025-02-27T10:08:46.2433333+00:00

Subject: Issue Installing Azure AI Vision Face UI Web SDK

I’m trying to install the Azure AI Vision Face UI Web SDK in my web project (React.js), but I’m encountering an issue during installation.

We went through the Azure AI Vision Face SDK documentation, tried to set up the environment, obtained face artifacts, created a project on Azure DevOps, set up a feed, and attempted to connect with the npm feed. We also created an .npmrc file in the project and added the registry URL in the file.

Steps Followed:

  1. Went through the Azure AI Vision Face SDK documentation.

Tried to set up the environment.

Obtained face artifacts.

Created a project on Azure DevOps.

Set up a feed and attempted to connect with the npm feed.

Created an .npmrc file in the project and added the registry URL in the file.

However, when running the following command:

npm install azure-ai-vision-face-ui@latest

We received the following error:

The package 'azure-ai-vision-face-ui' was not found in feed 'metafeed'.

Expected Behavior:

The SDK should install and integrate the face liveness detector.

Additional Information:

Feed name: metafeed

Links Referred: 1. Azure AI Vision Face SDK Documentation: https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/tutorials/liveness?tabs=csharp%2Cmobile-kotlin

2. Set up Environment: https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/web/SetupEnvironment.md

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,628 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 33,866 Reputation points Volunteer Moderator
    2025-03-02T23:13:42.5266667+00:00

    I am not expert of the subject but I will try to help you.

    First verify that you have created a feed in Azure DevOps and that the feed is correctly configured to include the azure-ai-vision-face-ui package.

    Create an .npmrc file in the root of your project if it doesn’t already exist and add the following content to the .npmrc file, replacing metafeed with your actual feed name and your-pat-token with your Personal Access Token (PAT):

    
    registry=https://pkgs.dev.azure.com/<your-organization>/_packaging/<metafeed>/npm/registry/
    
    always-auth=true
    
    //pkgs.dev.azure.com/<your-organization>/_packaging/<metafeed>/npm/registry/:username=xxx
    
    //pkgs.dev.azure.com/<your-organization>/_packaging/<metafeed>/npm/registry/:_password=<base64-encoded-pat>
    
    //pkgs.dev.azure.com/<your-organization>/_packaging/<metafeed>/npm/registry/:email=xxx
    
    

    To generate the base64-encoded PAT, you can use the following command in your terminal:

    
    echo -n 'your-pat-token' | base64
    
    

    Then run the following command to install the azure-ai-vision-face-ui package:

    
    npm install azure-ai-vision-face-ui@latest
    
    

    Don't forget to check if the package is listed in your package.json and node_modules directory after installation.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.