简体   繁体   中英

unknown: mosca in in Node-RED on IBM Cloud

I followed the instructions on http://www.steves-internet-guide.com/install-mosca-mqtt-broker-node-red/ on IBM Cloud.

I installed the node-red-contrib-mqtt-broker, but got the error "unknown: mosca in". 在此处输入图片说明

Installation error in app log: 在此处输入图片说明

OK, so as the log states, Node-RED has been unable to install the node.

Your best bet is to edit the package.json for the app so it is installed during app staging then restage the app. The easiest way to do this is to enable continuous integration for your app. I've not used IBM-Cloud in a while, so you'll have to check the docs for how to do this.

It's probably also worth noting that you will not be able to access the MQTT broker from outside Node-RED when running the mosca node on IBM-Cloud. This is because the IBM-Cloud environment only exposes one port from any application. In Node-RED's case this is the HTTP port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM