一、该问题的重现步骤是什么?
1. 拉取 node-red-pro 仓库 master分支,修改 packages/node_modules/node-red/settings.js 数据库配置;
2. 启动 start 命令,程序报错
访问 http://127.0.0.1:1880/
3.
二、你期待的结果是什么?实际看到的又是什么?
可正常访问Node-Red 界面
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
/Users/zhangbo/.nvm/versions/node/v18.20.5/bin/npm run start
> node-red@4.0.2 start
> node packages/node_modules/node-red/red.js
3 Jan 15:08:34 - [info]
欢迎使用Node-RED
===================
3 Jan 15:08:34 - [info] Node-RED 版本: v4.0.2
3 Jan 15:08:34 - [info] Node.js 版本: v18.20.5
3 Jan 15:08:34 - [info] Darwin 22.3.0 arm64 LE
3 Jan 15:08:34 - [info] 加载控制板节点
3 Jan 15:08:34 - [info] 设置文件 : /Users/zhangbo/.node-red/settings.js
3 Jan 15:08:34 - [info] 上下文储存: 'default' [module=memory]
3 Jan 15:08:34 - [info] 服务器现在在http://127.0.0.1:1880/上运行
3 Jan 15:08:34 - [info] 启动流程
3 Jan 15:08:34 - [info] [tcp out:ec0bc4aa.b3c828] 正在连接到 localhost:1885
3 Jan 15:08:34 - [info] 流程已启动
3 Jan 15:08:34 - [info] [tcp in:511f8208.c4c20c] 监听端口 1885
3 Jan 15:08:34 - [error] [watch:15f1f5aa.506ffa] Error: /tmp/hello.txt does not exist.
3 Jan 15:08:34 - [info] [tcp out:ec0bc4aa.b3c828] 已连接到 localhost:1885
3 Jan 15:08:34 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:08:34 - [info] [mqtt-broker:本机] 已连接到服务端: mqtt://127.0.0.1:1883
3 Jan 15:08:54 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:09:14 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:09:34 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:09:54 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:10:14 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:10:34 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:10:54 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
3 Jan 15:11:14 - [error] [MySQLdatabase:bladexiot] Error: Access denied for user 'root'@'localhost' (using password: YES)
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端