functionGlobalContext

Hi.

Have problem with a function.If i disable the function with // Node-red starts but if i remove // and enable the function i get Error loading settings file: /home/pi/.node-red/settings.js

Any idéa??

requst disable

Have you installed the request module?

Does it just needs to be installed in the node-red folder or globally, or does it have to be mentioned inside package.json ?

Fairly certain it can be installed either -g globally or in the node-red folder. Just so long as it is resolved by require like any regular node application.

1 Like

Installing it locally will automatically put it in package.json. So you should just need to go to your .node-red folder and
npm install request

1 Like

The double slashes are used for commenting the same.
This part after slashes won't be executed!