Image Can';t从windows将图像导入节点红色仪表板

Image Can';t从windows将图像导入节点红色仪表板,image,dashboard,node-red,Image,Dashboard,Node Red,我正在尝试将图像上载到红色节点的html模板节点中,我将httpStatic更改为: httpStatic: 'C:\\images', 和未注释的: httpAdminRoot: '/admin', 在settings.js文件中,我重新启动了Node Red,但它不起作用,因为我知道我尝试了不同的图像路径。谁能告诉我我做错了什么 这是我的测试流程 [{"id":"d41e6e2e.32de3","type":"function","z":"7e315e54.b418c","name":

我正在尝试将图像上载到红色节点的html模板节点中,我将httpStatic更改为:

httpStatic: 'C:\\images', 
和未注释的:

httpAdminRoot: '/admin',
在settings.js文件中,我重新启动了Node Red,但它不起作用,因为我知道我尝试了不同的图像路径。谁能告诉我我做错了什么

这是我的测试流程

[{"id":"d41e6e2e.32de3","type":"function","z":"7e315e54.b418c","name":"Convert info to image","func":"\nreturn msg","outputs":1,"noerr":0,"x":410.0173645019531,"y":305.3264021873474,"wires":[["4707d1b7.c63c2","d8509296.ba789"]]},{"id":"4707d1b7.c63c2","type":"ui_template","z":"7e315e54.b418c","group":"e1c5a186.41af2","name":" HTML Template","order":3,"width":"3","height":"3","format":"<p><img style=\"display: block; margin-left: auto; margin-right: auto;\" src={{msg.payload}} width=\"128\" height=\"128\"/></p>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":804.0173492431641,"y":306.3264021873474,"wires":[[]]},{"id":"d8509296.ba789","type":"debug","z":"7e315e54.b418c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":851.0972442626953,"y":207.00000715255737,"wires":[]},{"id":"dfbc3481.f6b438","type":"inject","z":"7e315e54.b418c","name":"","topic":"","payload":"/n.jpg","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":199.1006622314453,"y":228.40625715255737,"wires":[["d41e6e2e.32de3"]]},{"id":"e1c5a186.41af2","type":"ui_group","z":"","name":"Lamp","tab":"18f3acca.3bcee3","order":1,"disp":true,"width":"6","collapse":false},{"id":"18f3acca.3bcee3","type":"ui_tab","z":"","name":"Field","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
[{“id”:“d41e6e2e.32de3”,“type”:“function”,“z”:“7e315e54.b418c”,“name”:“Convert info to image”,“func”:“\nreturn msg”,“outputs”:1,“noerr”:0,“x”:410.0173645019531,“y”:305.3264021873474,“wires”:[“4707d1b7.c63c2”,“d850996.ba789”]],{“id”:“4707d1b7.c63c2”,“type”:“ui_模板”,“z”:“e515e54.b418a1c”,“组”HTML“af4186”:“HTML”:“模板”,“顺序”:3,“宽度”:“3”,“高度”:“3”,“格式”:“

”,“storeOutMessages”:true,“fwdInMessages”:true,“templateScope”:“local”,“x”:804.0173492431641,“y”:306.3264021873474,“wires”:[[]},{“id”:“d8509296.ba789”,“type”:“debug”,“z”:“7e315e54.b418c”,“name”:“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”“:851.0972442626953,“y”:207.00000715255737,“电线”:[],{“id”:“dfbc3481.f6b438”,“类型”:“注入”,“z”:“7e315e54.b418c”,“名称”:“主题”:“有效负载”:“/n.jpg”,“有效负载类型”:“str”,“repeat”:“crontab”:“一次”:true,“onceDelay”:0.1,“x”:199.1006622314453,“y”:228.40625715E.32de3”,“电线”:[“id”:“A11E6E2E.32de3”;“组”:“AFU”:”“,”名称“:”Lamp“,”tab“:”18f3acca.3bcee3“,”顺序“:”1,“显示“:”true“,”宽度“:”6“,”折叠“:”false},{”id“:”18f3acca.3bcee3“,”类型“:”ui_tab“,”名称“:”字段“,”图标“:”仪表板“,”顺序“:”1,“禁用“:”false“,”隐藏“:”false}]

这就是我在浏览器上遇到的错误

您编辑了错误的
settings.js
副本。安装目录中的副本(您编辑的)用作默认副本,并在第一次运行RED节点时复制到
userDir

您实际使用的
settings.js
版本会在启动时输出到日志中,但它很可能位于以下目录中:

c:\Users\alma\.node-red

你编辑了哪个
settings.js
呢?也不需要移动管理员根目录来只为静态内容提供服务器。我编辑了位于节点红色文件夹中的文件:C:\Users\alma\AppData\Roaming\npm\node\u modules\node red\settings.jsI回复了管理员根目录。我找不到这样的文件夹!另一方面,有很多设置s、 我告诉过你的文件夹中的js文件实际上在C:\Program files\Java\jdk1.8.0_111\bin\中。node red,非常感谢!我不敢想象你做了什么,最终将Java安装位置变成了你的node red
userDir