IoTP样板节点RED抱怨Node.js的版本不受支持 [英] IoTP boilerplate Node RED complains about unsupported version of Node.js

查看:194
本文介绍了IoTP样板节点RED抱怨Node.js的版本不受支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Watson IoTP的现有实例中打开了Node RED流编辑器,并看到有关不支持Node.js版本的警告.

I opened my Node RED flow editor from an existing instance of the Watson IoTP and saw a warning about unsupported version of Node.js.

使用不受支持的Node.js版本

"Using an unsupported version of Node.js

您应该升级到最新的Node.js LTS版本"

You should upgrade to the latest Node.js LTS release"

我该如何解决?

推荐答案

创建样板应用程序时,它是当时应用程序样板的快照.除非您维护它,否则什么都不会改变.该警告表明Node RED版本本身已更新(现在警告不支持的Node JS运行时),但运行时未更改.发生这种情况是因为在package.json中,您具有:

When a boilerplate application is created, it is a snapshot of the application boilerplate at that time. Unless you maintain it, nothing changes. The warning is indicating that the Node RED version itself has updated (and is now warning about unsupported Node JS runtime), but the runtime has not changed. This is happening because in the package.json you have:

"node-red":"0.x" -which says install the latest 0.x Node Red version.


and


"engines":{

  "node":"0.12.x"
 }

控制Node.js运行时版本*

"engines":{

    "node":"4.x"

}

您可以通过更新此警告来解决警告

You can fix the warning by updating this

这篇关于IoTP样板节点RED抱怨Node.js的版本不受支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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