我正在尝试在Moxa UC8112上运行node-red,它没有任何图形,完全通过SSH命令行运行。
我尝试使用"npm install request“和"npm audit fix”来注册和修复node_modules,但仍然收到"Waiting for missing types to be register:“错误。
我的命令提示符如下:
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“。
发布于 2019-01-31 15:38:41
为了将流从一个Node-RED实例移动到另一个实例,您需要确保使用的所有节点都安装在目标系统上。
您可以通过菜单中的manage pallet选项或命令行上的npm来安装它们。
最简单的方法可能是将package.json
文件从源系统上的.node-red目录复制到。在目标上的节点红色目录中,然后在同一目录中运行npm install
。
https://stackoverflow.com/questions/54448765
复制相似问题