3 months ago
I need to use the crypto-js module in n8n.
However, when I run it, it returns an error saying that it cannot find this module...
In a local environment, I would open my terminal and run the command npm install crypto-js
To install this module and start using it in the application...
How can I do this in the railway environment?
I am using the n8n w/workers template. But there is no documentation about this and I have not found anyone talking about this subject, at least in Brazil.
Does anyone have any idea how to do this?
5 Replies
3 months ago
Hey, have you included the crypto-js
module in the package.json
file of the n8n project? I'm also seeing some env variables missing in your Redis deployment that you'll need to set up for that to work. I'd recommend looking through the settings and logs to make sure things are correctly configured
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
I installed n8n using a template... I don't know how to access package.json or any other file, for example. How do I do that?
One workaround I did was to modify the n8n docker image and add 'crypto-js' to the NODE-EXTERNAL variable.
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
3 months ago
Hello,
I'm sorry, but we cannot provide support for 3rd party software as these forums are for the Railway platform and product.
For support or assistance with n8n, please ask in their forums.
Best,
Brody
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
But I'm not answering n8n's question...
I want to know if it's possible for me to access the terminal of my railway instance? And write installation commands, for example npm install whatever.
And if it's possible to access the file directories. Is it possible for me, to have an ftp on these directories?
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
3 months ago
https://docs.railway.com/reference/cli-api#ssh
I wouldn't recommend using that to install packages, though. Containers are ephemeral and anything you install will get removed on the next deploy, so you'll have to re-install them again from scratch.
The better way would be to ensure you have the packages you need in your build/image. That is not platform-specific and we cannot help with that.
Status changed to Awaiting User Response railway[bot] • 3 months ago