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

查看:69
本文介绍了如何在dialogflow内嵌实现package.json中使用节点引擎版本10进行设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

我尝试在package.json中设置它

I try to set it in package.json

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

但是在我的Firebase项目中,部署的实现云功能仍然使用'Node.js 8'.

But in my Firebase project, deployed fulfilment cloud function remains use 'Node.js 8'.

推荐答案

截至几天前,Dialogflow内联实现使用节点10(您无法切换回节点8).这样做的缺点是您必须为与dialogflow代理关联的GCP项目启用计费,因为在后台内联实现使用Cloud Build进行部署.

As of a few days ago, the Dialogflow inline fulfillment uses Node 10 (and you cannot switch back to Node 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.

如果您想以一种免费的方式在Node 10中部署功能,则建议使用 Firebase功能,并使用 engines:{节点:10;} (在最初的问题中确定)来请求Node 10运行时.

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; } as you identified in your initial question to request the Node 10 runtime.

这篇关于如何在dialogflow内嵌实现package.json中使用节点引擎版本10进行设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆