我最近不得不在服务器端使用 MEAN 重新开始开发。在深入了解 node.js 之后,我想将我新发现的理解应用到 Node-RED 环境中。我之前尝试让我的 BBB 和 Raspberries 与 Node-RED 的稳定版本一起工作总是被证明是徒劳的。
是否有任何理由为什么 Node-RED 的特定配置没有像 mongodb 中的显着版本更改那样被锁定?我之前的挫败感和今天在 Windows 上的 Bitnami MEAN 堆栈上复制的错误提示了我的问题。
https://github.com/node-red/node-red/issues/565
我可以尝试回滚到 package.json 中建议的模块版本,但这似乎很极端。任何澄清将不胜感激。
我今天死在水中的编辑器错误:
C:\Bitnami\meanstack-3.0.2-0\projects\node-red>node-red
Welcome to Node-RED
===================
19 Jun 18:36:16 - [info] Node-RED version: v0.10.10
19 Jun 18:36:16 - [info] Node.js version: v0.12.2
19 Jun 18:36:16 - [info] Loading palette nodes
19 Jun 18:36:17 - [warn] ------------------------------------------
19 Jun 18:36:17 - [warn] Failed to register 5 node types
19 Jun 18:36:17 - [warn] Run with -v for details
19 Jun 18:36:17 - [warn] ------------------------------------------
19 Jun 18:36:17 - [info] Settings file : ./settings
19 Jun 18:36:17 - [info] User Directory : \Users\xxx\.node-red
19 Jun 18:36:17 - [info] Flows file : \Users\xxx\.node-red\flows_Opti
plex790.json
19 Jun 18:36:17 - [info] Server now running at http://127.0.0.1:1880/
19 Jun 18:36:17 - [info] Creating new flows file
19 Jun 18:36:17 - [info] Starting flows
19 Jun 18:36:17 - [info] Started flows
19 Jun 18:37:50 - [red] Uncaught Exception:
19 Jun 18:37:50 - TypeError: argument entity must be string, Buffer, or fs.Stats
at etag (C:\Bitnami\meanstack-3.0.2-0\nodejs\node_modules\node-red\node_modu
les\express\node_modules\send\node_modules\etag\index.js:55:11)
at SendStream.setHeader (C:\Bitnami\meanstack-3.0.2-0\nodejs\node_modules\no
de-red\node_modules\express\node_modules\send\index.js:724:15)
at SendStream.send (C:\Bitnami\meanstack-3.0.2-0\nodejs\node_modules\node-re
d\node_modules\express\node_modules\send\index.js:500:8)
at onstat (C:\Bitnami\meanstack-3.0.2-0\nodejs\node_modules\node-red\node_mo
dules\express\node_modules\send\index.js:585:10)
at FSReqWrap.oncomplete (fs.js:95:15)
C:\Bitnami\meanstack-3.0.2-0\projects\node-red>