Hi @Olga Andreeva,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
If you want to use npm ci instead of npm install. We can achieve this but before replacing we need to follow the below steps.
- Before using npm ci, make sure your project has either a package-lock.json or yarn.lock file. These files lock down the dependency versions, ensuring consistent installations across different environments.
- If you're using a custom build process, you can directly replace npm install with npm ci in your build script.
- If you're using the default build process in Azure Functions, you'll need to modify the build script that Azure Functions uses. This script is typically located in the functions directory of your project.
- Open the build script (e.g., build.sh or build.cmd) and find the line that executes npm install and replace that line with the npm ci
- Deploy your updated Function App to Azure. The deployment process will now use npm ci to install dependencies.
If you find this answer helpful, please click "Comment" and kindly upvote it.