等待缺少的类型被注册:

时间:2019-01-30 20:08:35

标签: embedded-linux node-red

我正在尝试在Moxa UC8112上运行node-red,它没有任何图形并且完全通过SSH命令行运行。

我曾尝试使用“ npm install request”和“ npm audit fix”注册并修复node_modules,但仍然收到“等待缺少类型的注册:”错误。

我的命令提示符如下:

moxa@Moxa:~/.node-red$
moxa@Moxa:~/.node-red$ npm install request
+ request@2.88.0
updated 1 package and audited 387 packages in 85.818s
found 0 vulnerabilities

moxa@Moxa:~/.node-red$ npm audit fix
up to date in 48.031s
fixed 0 of 0 vulnerabilities in 387 scanned packages
moxa@Moxa:~/.node-red$ node-red
31 Jan 11:47:40 - [info]

Welcome to Node-RED
===================

31 Jan 11:47:40 - [info] Node-RED version: v0.19.5
31 Jan 11:47:40 - [info] Node.js  version: v6.14.0
31 Jan 11:47:40 - [info] Linux 4.1.0-ltsi-rt-uc8100-me+ arm LE
31 Jan 11:47:45 - [info] Loading palette nodes
31 Jan 11:47:50 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
31 Jan 11:47:50 - [warn] rpi-gpio : Cannot find Pi RPi.GPIO python library
31 Jan 11:48:02 - [info] Settings file  : /home/moxa/.node-red/settings.js
31 Jan 11:48:02 - [info] Context store  : 'default' [module=memory]
31 Jan 11:48:02 - [info] User directory : /home/moxa/.node-red
31 Jan 11:48:02 - [warn] Projects disabled :     
editorTheme.projects.enabled=false
31 Jan 11:48:02 - [info] Flows file     : /home/moxa/.node-        red/flows_Moxa.json
31 Jan 11:48:02 - [info] Server now running at http://127.0.0.1:1880/
31 Jan 11:48:02 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

31 Jan 11:48:02 - [info] Waiting for missing types to be registered:
31 Jan 11:48:02 - [info]  - twilioConfig
31 Jan 11:48:02 - [info]  - modbustcp-server
31 Jan 11:48:02 - [info]  - twilio-api
31 Jan 11:48:02 - [info]  - modbus-client
31 Jan 11:48:02 - [info]  - amazon config
31 Jan 11:48:02 - [info]  - sms
31 Jan 11:48:02 - [info]  - modbus-getter

我希望这可能与我如何安装node_modules有关?即使我确保在.node-red目录中“ npm install”。

1 个答案:

答案 0 :(得分:1)

为了将流从Node-RED的一个实例移动到另一个实例,您需要确保所有使用的节点都安装在目标系统上。

您可以通过菜单中的管理托盘选项或在命令行中使用npm来安装它们。

最简单的方法可能是将package.json文件从源系统上的.node-red目录复制到。目标上的node-red目录,然后在同一目录中运行npm install