且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IoTP样板节点RED抱怨Node.js的版本不受支持

更新时间:2023-10-17 11:28:28

创建样板应用程序时,它是当时应用程序样板的快照.除非您维护它,否则什么都不会改变.该警告表明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