twilio - 即使我设置了环境变量,Twilio CLI 也不会登录
问题描述
在终端的 Mac OS 上,当我输入 twilio login 时,我得到:
» Installing keytar ...
» Secure credential storage failed to load.
Alternatively, twilio-cli can use credentials stored in environment variables:
# OPTION 1 (recommended)
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
TWILIO_API_KEY = an API Key created at twil.io/get-api-key
TWILIO_API_SECRET = the secret for the API Key
# OPTION 2
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
TWILIO_AUTH_TOKEN = your Auth Token from twil.io/console
Once these environment variables are set, a twilio-cli profile is not required to move forward with installation.
但是,我确实尝试通过键入下面的语句来设置环境变量,但它仍然不起作用(当然我用实际值替换了字符串):
export TWILIO_ACCOUNT_SID="abcd"
export TWILIO_AUTH_TOKEN="efgh"
解决方案
推荐阅读
- svelte - 无法显示 Svelte 页面
- java - java.lang.NoSuchMethodError: org.apache.avro.Schema$Field。
- azure-blob-storage - Azure SDK 版本 12 中的 BlobClient 与 BlobItem 和 BlobHierarchyItem.Blob 有什么区别?
- python - PyTorch TabularDataset 拆分显示错误的结果
- forms - 如何使用 CGI.pm 获取选中复选框的列表?
- javascript - 如何绕过 CORS 从 Blazor WebAssembly 调用 Firestore?(调用在 JavaScript 中)
- jquery - 辅助列上的 DataTable 排序不起作用
- tui-calendar - tui-calendar 模板选项在 tui-calendar 中不起作用
- django - 我可以在 django 身份验证中使用 6 位密码而不是密码登录我的用户吗?
- powershell - 使用 Invoke-WUJob 进行 Windows 更新