【问题标题】:i get - Error: Entry not found in cache - during sls deploy我得到 - 错误:在缓存中找不到条目 - 在 sls 部署期间
【发布时间】:2021-05-01 03:50:31
【问题描述】:

我使用无服务器创建基本的 azure nodejs 模板

serverless create --template azure-nodejs --name azure-crud

之后我不会更改代码中的任何内容,而是尝试我运行的基本内容

sls deploy

但是当我运行这个命令时,我在 cmd 中得到了这个错误

Serverless: Initializing provider configuration...
Serverless: Configuration warning: Unrecognized provider 'azure'
Serverless:
Serverless: You're relying on provider plugin which doesn't provide a validation schema for its config.
Serverless: Please report the issue at its bug tracker linking: https://www.serverless.com/framework/docs/providers/aws/guide/plugins#extending-validation-schema
Serverless: You may turn off this message with "configValidationMode: off" setting
Serverless:
Serverless: Parsing Azure Functions Bindings.json...
Serverless: Parsing Azure Functions Bindings.json...
Serverless: Building binding for function: hello event: httpTrigger
Serverless: Building binding for function: goodbye event: httpTrigger
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Logging into Azure
Serverless: Using subscription ID: xxx
Serverless: Creating resource group: some-resource-group

  Error --------------------------------------------------

  Error: Entry not found in cache.

它会取消部署过程。我应该怎么做才能使这件事起作用?问题出在哪里?

我有这个 sls 版本

Framework Core: 1.80.0
Plugin: 3.8.1
SDK: 2.3.1
Components: 2.34.9

【问题讨论】:

    标签: node.js azure serverless


    【解决方案1】:

    有点晚了,但删除了对我有用的 ~/.azure/slsTokenCache.json 文件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-22
      • 2011-07-29
      • 1970-01-01
      • 2019-01-26
      • 2014-06-13
      • 2020-01-11
      相关资源
      最近更新 更多