NGRP / node-red-contrib-viseo

Node-RED nodes OpenSourced by VISEO Technologies
Apache License 2.0
227 stars 83 forks source link

Error: Cannot find module 'request' (line:1) #90

Closed alpercelerce closed 6 years ago

alpercelerce commented 6 years ago

When i try use this node in a flow, it gives me error below:

16 Aug 13:16:43 - [warn] [node-red-contrib-viseo-loop/loop-management] Error: Ca nnot find module 'request' (line:1)

How can i resolve this issue ?

image

All Output:

Welcome to Node-RED

16 Aug 13:08:53 - [info] Node-RED version: v0.18.7 16 Aug 13:08:53 - [info] Node.js version: v10.4.0 16 Aug 13:08:53 - [info] Linux 3.10.0-862.3.3.el7.x86_64 x64 LE 16 Aug 13:08:53 - [info] Loading palette nodes 16 Aug 13:08:54 - [warn] ------------------------------------------------------ 16 Aug 13:08:54 - [warn] [node-red/rpi-gpio] Info : Ignoring Raspberry Pi specific node 16 Aug 13:08:54 - [warn] ------------------------------------------------------ 16 Aug 13:08:54 - [info] Settings file : /home/nodered1/.node-red/settings.js 16 Aug 13:08:54 - [info] User directory : /home/nodered1/.node-red 16 Aug 13:08:54 - [warn] Projects disabled : editorTheme.projects.enabled=false 16 Aug 13:08:54 - [info] Flows file : /home/nodered1/.node-red/flows_nodered.json 16 Aug 13:08:54 - [warn]


Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials file will not be recoverable, you will have to delete it and re-enter your credentials.

You should set your own key using the 'credentialSecret' option in your settings file. Node-RED will then re-encrypt your credentials file using your chosen key the next time you deploy a change.

16 Aug 13:08:54 - [info] Waiting for missing types to be registered: 16 Aug 13:08:54 - [info] - loop-management 16 Aug 13:08:54 - [info] Server now running at http://127.0.0.1:1880/ 16 Aug 13:09:22 - [info] Stopping flows 16 Aug 13:09:22 - [info] Stopped flows 16 Aug 13:09:22 - [info] Waiting for missing types to be registered: 16 Aug 13:09:22 - [info] - loop-management 16 Aug 13:09:35 - [warn] Failed to enable node: 16 Aug 13:09:35 - [warn] - loop-management : Error: Cannot find module 'request' (line:1) 16 Aug 13:09:43 - [info] Stopping flows 16 Aug 13:09:43 - [info] Stopped flows 16 Aug 13:09:43 - [info] Waiting for missing types to be registered: 16 Aug 13:09:43 - [info] - loop-management 16 Aug 13:10:00 - [info] Stopping flows 16 Aug 13:10:00 - [info] Stopped flows 16 Aug 13:10:00 - [info] Starting flows 16 Aug 13:10:00 - [info] Started flows 16 Aug 13:10:05 - [info] Uninstalling module: node-red-contrib-viseo-loop 16 Aug 13:10:07 - [info] Uninstalled module: node-red-contrib-viseo-loop 16 Aug 13:10:07 - [info] Removed node types: 16 Aug 13:10:07 - [info] - node-red-contrib-viseo-loop:loop-management 16 Aug 13:10:53 - [info] Installing module: node-red-contrib-viseo-loop, version: 0.2.0 16 Aug 13:10:55 - [info] Installed module: node-red-contrib-viseo-loop 16 Aug 13:10:55 - [info] Added node types: 16 Aug 13:10:55 - [info] - node-red-contrib-viseo-loop:loop-management : Error: Cannot find module 'request' (line:1) ^C16 Aug 13:13:28 - [info] Stopping flows 16 Aug 13:13:28 - [info] Stopped flows

alpercelerce commented 6 years ago

I think the issue not related with this node directly. When I run command below, it started to work successfully.

npm install request