error An unexpected error occurred: "https://registry.yarnpkg.com/@twilio-labs%2fplugin-serverless: getaddrinfo EAI_AGAIN registry.yarnpkg.com".
jonnadul opened this issue · 1 comments
Get the following issue:
root@b91ba7b2c8ea:~/.twilio-cli# twilio plugins install @twilio-labs/plugin-serverless
» If you’re using autocomplete, you’ll need to run twilio autocomplete after installing a plugin and then open a new terminal window. The CLI needs to re-build its cache.
error An unexpected error occurred: "https://registry.yarnpkg.com/@twilio-labs%2fplugin-serverless: getaddrinfo EAI_AGAIN registry.yarnpkg.com".
Installing plugin @twilio-labs/plugin-serverless... failed
Error: yarn add @twilio-labs/plugin-serverless@latest --non-interactive
--mutex=file:/root/.twilio-cli/yarn.lock --preferred-cache-folder=/root/.twilio-cli/yarn --check-files
exited with code 1
VERSION
twilio-cli/5.5.0 linux-x64 node-v14.18.1
NOTE: I installed and run the Twilio CLI as the docker image.
Resolved the issue, needed to specifying the host network config during docker run.
--network="host"
Might be worth it to update your public docs to reflect this.