azure functions -running npm install on azure portal

Viewed 2369

This is a how to question, not a problem

I would like use an npm package in my javascript Azure function. How do I get a console in the azure functions portal to run npm install? If there is a better way to reference the npm package, this will answer my question too. A documentation reference with an example of installing the npm package in an Azure function would also be appreciated.

I apologize for this basic question. I am new to both node and azure functions and have enjoyed learning what I have so far, but this simple procedure is eluding me.

Thank you for any help you can give me

1 Answers

You can use the KUDU console at https://yourfunctionappname.scm.azurewebsites.net and navigate to the wwwroot folder and install the package that you need!

Here is an article that i wrote to showcase how you can install python packages!

However when you deploy the azure function package.json will have all the dependencies and you dont need to install them separately.

Related