Objective
This article shows you how to review the npm modules a Functions service depends on and how to import, change, or remove them, so your function code can use the libraries it needs.
Product
Twilio Functions and Assets
Environment
Twilio Console
Procedure
- In the Twilio Console, select Builder tools in the left sidebar.
- Select Functions & Assets, then Services.
- Select the name of the service you want to configure.
- Select the Dependencies tab. The table lists each Module with its Version.
- To add a module, select Import module, enter the npm package name in Module, optionally enter a Version, and select Add.
- To change a module, select Edit on its row, update the Module or Version, and confirm the update.
- To remove a module, select Delete on its row.
Additional Information
- Leave Version empty to use the latest version. Otherwise enter a valid semver value such as
1.2.3,^1.2, or~1.2. - The module name must be a valid npm package name, and you cannot add the same module twice.
- The core modules
twilioand@twilio/runtime-handlerare included with every service. They are marked Required in the table and cannot be edited or removed. - If the service has no build yet, the table shows that no build is available. If it has a build but no added modules, it shows that no dependencies have been added yet.
This content was generated by AI and reviewed, edited, and verified by a human.