简体   繁体   English

等待缺少的类型被注册:

[英]Waiting for missing types to be registered:

I'm trying to run node-red on a Moxa UC8112, which has no graphics whatsoever and run completely through SSH command line. 我试图在Moxa UC8112上运行node-red,它没有任何图形,并完全通过SSH命令行运行。

I have tried to register and fix the node_modules with "npm install request" and "npm audit fix", but still receive the "Waiting for missing types to be registered:" error. 我试图用“ npm install request”和“ npm audit fix”注册并修复node_modules,但仍然收到“等待缺少类型的注册:”错误。

My command prompt is as follows: 我的命令提示符如下:

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

I expect it to be an issue possibly with how I installed the node_modules? 我希望这可能与我如何安装node_modules有关? Even though I made sure to "npm install " in the .node-red directory. 即使我确保在.node-red目录中“ npm install”。

In order to move a flow from one instance of Node-RED to another you need to ensure that all the nodes used are installed on the target system. 为了将流从Node-RED的一个实例移动到另一个实例,您需要确保所有使用的节点都安装在目标系统上。

You can either install them via the manage pallet option in the menu or with npm on the command line. 您可以通过菜单中的管理托盘选项或命令行上的npm来安装它们。

The easiest way is probably to copy the package.json file from the .node-red directory on the source system to the . 最简单的方法可能是将package.json文件从源系统上的.node-red目录复制到。 node-red directory on the target and then run npm install while in the same directory. 目标上的node-red目录,然后在同一目录中运行npm install

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM