简体   繁体   English

如何在 dialogflow 内联实现 package.json 中使用节点引擎版本 10 进行设置?

[英]How to set using node engine version 10 in dialogflow inline fulfilment package.json?

How to set using node engine version 10 in dialogflow inline fulfilment package.json?如何在 dialogflow 内联实现 package.json 中使用节点引擎版本 10 进行设置?

I try to set it in package.json我尝试将其设置为 package.json

"engines": {
    "node": "10"
}

But in my Firebase project, deployed fulfilment cloud function remains use 'Node.js 8'.但是在我的 Firebase 项目中,部署的履行云 function 仍然使用“Node.js 8”。

As of a few days ago, the Dialogflow inline fulfillment uses Node 10 (and you cannot switch back to Node 8).截至几天前,Dialogflow 内联实现使用节点 10(您无法切换回节点 8)。 The downside of this is that you must have billing enabled for the GCP project your dialogflow agent is associated with, as under-the-hood the inline fulfillment uses Cloud Build to deploy.这样做的缺点是您必须为您的 dialogflow 代理关联的 GCP 项目启用计费,因为在后台,内联实现使用 Cloud Build 进行部署。

If you want a free way to deploy your functions in Node 10, then I suggest using Firebase Functions , and using the engines: { node: 10; }如果您想以一种免费的方式在 Node 10 中部署您的函数,那么我建议使用Firebase Functions ,并使用engines: { node: 10; } engines: { node: 10; } as you identified in your initial question to request the Node 10 runtime. engines: { node: 10; }您在请求 Node 10 运行时的初始问题中所确定的那样。

Don't use the Inline editor, it has some bugs as of now.不要使用内联编辑器,它现在有一些错误。 You can use Firebase CLI to host the fulfillment code.您可以使用 Firebase CLI 托管履行代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 GitLab CI/CD 上碰撞 package.json 版本的项目? - How to bump package.json version of project on GitLab CI/CD? Firebase 函数是否不支持 Node 18 作为其 Package.json 文件中的引擎参数? - Does Firebase Function Does not Support Node 18 as its Engine parameter in Package.json file? 我如何获得在 DialogFlow 上调用我的 fulfillment 的意图? - How do I get my intent to call my fulfilment on DialogFlow? 如何在不使用 webhook 客户端的情况下设置 dialogflow fulfillment response json 上下文? - How to set dialogflow fulfillment response json context without using webhook client? Is go.mod in Go the same thing as package.json in JavaScript (node)? - Is go.mod in Go the same thing as package.json in JavaScript (node)? 找不到 package.json。 Node.js 可能有启动问题。 验证 package.json 是否有效或将代码放在名为 server.js 或 app.js 的文件中 - Failed to find package.json. Node.js may have issues starting. Verify package.json is valid or place code in a file named server.js or app.js 如何使用 python 在对话流 CX 中传递查询参数 - How to pass queryparams in dialogflow CX using python 在 Dialogflow(内联编辑器)中部署时出现问题 - problem in deploying in Dialogflow (Inline Editor) 对话流自定义有效负载 json - dialogflow custom payload json 将 DialogFlow 连接到 Compute Engine 实例 - Connect DialogFlow to Compute Engine Instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM