【问题标题】:How to resolve 'Unexpected end of JSON input' using typed-azure-functions?如何使用 typed-azure-functions 解决“JSON 输入的意外结束”?
【发布时间】:2022-01-08 17:40:00
【问题描述】:

我正在使用带有 shopify 微服务的克隆存储库中的 azure functions 核心工具。项目设置有以下步骤:
npm install
npm run build

npm run typed-az-func -- push
npm run typed-az-func -- push --execute
npm run typed-az-func -- pull

我使用 azure-cli 在 azure 上登录。在最后一个命令(npm run typed-az-func -- pull)中,我遇到了一些错误: Command errors

我正在运行 Ubuntu 20.04.3 LTS 并从此安装了 Azure Function Core Tools:https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v3%2Clinux%2Ccsharp%2Cportal%2Cbash%2Ckeda

【问题讨论】:

    标签: javascript typescript azure azure-functions azure-sql-database


    【解决方案1】:

    您的npm 缓存很可能已损坏。

    在 npm run 命令之前尝试npm cache clean --force 命令,这应该可以解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-10
      • 1970-01-01
      • 2021-06-04
      • 2019-04-28
      • 2015-08-05
      • 1970-01-01
      • 2021-10-03
      • 1970-01-01
      相关资源
      最近更新 更多