A2P 10DLC Campaign Vetting Delays: Twilio cannot approve 10DLC Campaigns ourselves, and must rely on third parties who control our connections to carriers to sign off. These external processes are creating several week delays for our customers. We continue to escalate these issues and are working to reduce delays wherever possible. Further details will be shared in the Campaign Vetting Changes article as they become available.

Flex Plugin CLI is "incompatible with this module" error message

Are you experiencing issues when attempting to install @twilio-labs/plugin-flex? Is your error message mentioning something about node incompatability? Read on below for our troubleshooting steps below. Also be sure to check out our flex plugin install, flex plugin quickstart, and flex plugin cli reference guides for more generalized flex plugin cli reference material.

The Issue

If you see the following error when installing the flex-plugin cli from terminal:

The engine "node" is incompatible with this module. Expected version "^12 || ^14 || ^16". Got "18.14.1"
Installing plugin @twilio-labs/plugin-flex... failed

You may be running into an issue where some versions of Twilio CLI are currently bundled with node version 18 during install. Flex Plugin CLI at this time is only compatible with node 14 and some versions of node 16. Node 18 support is coming at a later date. For the most current Flex Plugin CLI prerequisites be sure to check out this page.

 

How to Verify the issue is impacting you

To verify this is impacting you can run the following command in your terminal:

twilio version
twilio-cli/5.4.1 darwin-x64 node-v18.14.1

If you see v18.xx.x or higher you have confirmed you are impacted by this issue.

 

Workarounds

In order to workaround the node 18 version customers are advised to install the Twilio CLI via brew for Mac OS, use npm, or use the twilio-cli docker image which does not currently contain node 18 until we can provide a permanent solution.

 

First uninstall Twilio CLI with whichever method you used to originally install Twilio CLI. After verifying Twilio CLI is no longer installed on your computer you can move on to the next steps.

 

Install twilio-cli using Homebrew:

Make sure you have homebrew installed.

Run the following command from terminal:

brew tap twilio/brew && brew install twilio

Verify your version of twilio cli is now v14 or v16:

twilio version
twilio-cli/5.4.1 darwin-x64 node-v1X.XX.X

You should now be able to install flex plugins CLI

twilio plugins:install @twilio-labs/plugin-flex

Install twilio-cli using NPM:

NPM will not auto-update your twilio-cli and is often not recommended as best practice.

npm install -g twilio-cli

Verify your version of twilio cli is v14 or v16:

twilio version
twilio-cli/5.4.1 darwin-x64 node-v1X.XX.X

You should now be able to install flex plugins CLI

twilio plugins:install @twilio-labs/plugin-flex

Install twilio-cli using Docker:

For instructions installing twilio-cli docker please see the latest instructions on our public documentation page here.

Verify your version of twilio cli is v14 or v16:

twilio version
twilio-cli/5.4.1 darwin-x64 node-v1X.XX.X

You should now be able to install flex plugins CLI

twilio plugins:install @twilio-labs/plugin-flex

Still Having Trouble?

If you can rule out all the above issues, Twilio's Support team can help investigate what went wrong with the flex plugin cli. Please open a support request with a copy of your console log with verbose mode enabled and be sure to share the full results to the ticket for further troubleshooting:

twilio plugins:install @twilio-labs/plugin-flex -v
Have more questions? Submit a request
Powered by Zendesk