首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >正在等待注册缺少的类型:

正在等待注册缺少的类型:
EN

Stack Overflow用户
提问于 2019-01-31 04:08:35
回答 1查看 1.7K关注 0票数 1

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

我尝试使用"npm install request“和"npm audit fix”来注册和修复node_modules,但仍然收到"Waiting for missing types to be register:“错误。

我的命令提示符如下:

代码语言:javascript
运行
复制
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“。

EN

回答 1

Stack Overflow用户

发布于 2019-01-31 15:38:41

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

您可以通过菜单中的manage pallet选项或命令行上的npm来安装它们。

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54448765

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档