The module is probably not enabled for cloud, Like the code node to access it you would likely need to set NODE_FUNCTION_ALLOW_BUILTIN or NODE_FUNCTION_ALLOW_EXTERNAL to allow the package to be used.
Would you advice apply to self hosted and how would I apply your advice? I assume somewhere in the file structure there is a file that would need editing?
Can you give me some semi laymen guidance? I have SSH access and can use nano to make file edits.
The advice only applies to self hosted as it wouldn’t work on Cloud. The 2 options I mentioned are both environment variables so setting them would depend on how you have n8n configured but it would no different to when you set up the other n8n options.
You will need to add the name of the npm package you are trying to use then add it to the option… That being said though I just thought I would give it a go quickly and for me even after setting those options I still can’t use the serper option but we do already have a tool for SerpAPI… Is there a feature we are missing from it?
I don’t think there was a plan to release a serper.dev but more of a… we could look into it. I have asked internally if anyone knows why it isn’t working as it looks like it should be good to go.
I am trying to edit docker-compose.yml file which is where I think I am supposed to make changes? I know you said they are not working but could you share the exact code I should add to the file. I will need to get this step done any way once this starts working.
I have n8n set up using docker using the std docker n8n installation with the recommended settings and database.
The exact code would depend on what the package you are using would ask for. For my instance I have allowed everything for testing so I have both environment options set to *
The n8n lang chain beta package? If that is what you mean by package? (on a vertical learning curve here these past few months but still lots of gaps in my techie know how)
I have n8n set up using docker using the std docker n8n installation with the recommended settings and database.
Yeah that is it although you have some older options there that can be removed, So you could use something like the below but this will allow everything so you would need to replace the * with the name of the npm package you are using.
Please becareful with this issue as it has potential security risks if you don’t know what you are doing.