我嘗試在Node-RED中使用httpInMultipart節點,但是在我的package.json依賴項中添加"node-red-contrib-http-multipart":"0.1.x"
後,重新啓動後節點紅色,有一個錯誤消息:Node-RED節點[httpInMultipart]:錯誤:找不到模塊的body-parser
[httpInMultipart] Error: Cannot find module 'body-parser'
這導致在節點紅色托盤未示出了httpInMultipart節點。
我試圖添加"body-parser":"1.15.x"
在我的package.json,但它仍然無法正常工作,並且具有相同的錯誤信息......
從一個簡單的節點看它會遇到一些問題,比如這個問題,事實上它包含了所有的node-red作爲依賴。我會建議通過package.json中的電子郵件向開發者提出一個錯誤,因爲他們沒有縫包含節點的github存儲庫 – hardillb