# 如何在 QIoT NodeRED 中安裝其他 modules?(新版)
本教學教您如何使用QIoT Suite Lite 中的Rule(Node-red)中安裝其他 modules的三種方式 :
* UI介面安裝Node-red官方(npm)架上Plugin
* 手動安裝Node-red npm 架上Plugin
* 手動安裝Zip檔案,非架上Node-red Plugin
**<font color=red>注意 : 若UI介面安裝後未出現Node,請使用手動安裝</font>**
## UI介面安裝Node-red官方(npm)架上Plugin
1. 在QIoT Suite Lite IoT Application中選擇您的IoT Application,切換至Rule頁面
2. 點擊畫面右上角選單符號,點擊`Manage palette` :

3. 點擊Install頁籤,在搜尋欄位搜尋您想要安裝的plugin名子,最後點擊`install` :

4. 跳出警告訊息,因為每種Plugin有不同的安裝方式,建議參考各個Plugin說明在行安裝,點擊`Install` :

5. 安裝完成後即出現會綠色方框,若出現紅色方框代表此Plugin不支援,請參考此Plugin安裝說明,另外若安裝成功卻沒有node出現請先重新整理頁面即會出現 :


## 手動安裝Node-red npm 架上Plugin
1. SSH進入NAS
2. 進入`qiot-node-red` Container :
```bash
system-docker exec -ti qiot-node-red bash
```
3. 移動資料夾到`node_modules`目錄 :
```bash
cd /usr/local/lib/node_modules/node-red/node_modules/
```
3. 安裝Node-red Plugin :
```bash
npm install node-red-contrib-webduino
```
6. 重新啟動所有的Node-red執行程序 :
```bash
supervisorctl restart all
```
7. 最後即可在Node-red node列表中看見新增加的Node :

## 手動安裝Zip檔案,非架上Node-red Plugin
1. 複製zip檔案到您的NAS上並解壓縮(ex : Public資料夾)
2. SSH進入NAS
3. 切換至您上傳Plugin的目錄(ex : `cd /share/Public`)
4. 移動解壓縮後的目錄至QIoT Suite Lite Node-red modules資料夾中,ex :
```bash
mv node-red-contrib-CHT `/sbin/getcfg QIoT Install_Path -f /etc/config/qpkg.conf`/qiot-node-red/node-red/node_modules/
```
5. 重新啟動所有的Node-red執行程序 :
```bash
system-docker exec -ti qiot-node-red supervisorctl restart all
```
6. 最後即可在Node-red node列表中看見新增加的Node :

**<font color=red>\* 注意: 如果您的module有使用GCC 編譯器或有改變OS底層介面,那麼即使成功安裝好module,也有可能無法正常執行。</font>**
###### tags: `Tutorial`