npm install -g --unsafe-perm node-red

启动Node-RED:

系统本地安装sqlite3:
apt install sqlite3
开启验证登录功能,进入nodered目录执行上述命令:
node -e "console.log(require('bcryptjs').hashSync(process.argv[1], 8));" wong@123

对应的密钥为:$2a$08$91PyPCfhVhFMVsaY4NgFqOuPuMgnA3a3fna0mjeQRu2f54SFnB7.e
查找配置文件存放目录: