Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Request for npm packages so I can migrate my n8n instance

    N8N
    n8n npm nodejs automation
    4
    12
    534
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ajtatum
      ajtatum last edited by

      I currently have n8n running on a separate server and would like to consolidate it to Cloudron especially since it's calling other apps on Cloudron (like Miniflux). However, there are a few packages that I currently use that I don't see in the currently repository that would prohibit me from migrating. Below is a list of packages (sorry it's long) of packages that aren't on Cloudron and I either currently use them, working on developing them, or plan to use them in the near future. I noticed "@azure" was listed as a package, but I wanted to make sure that all the azure packages are included.

      One thing that I don't know if it would ever be possible on Cloudron is if it will be able to do browser automation via n8n. That's something I really want to do so I can really get away from third party services and automate a BUNCH of stuff.

      Anyway, here's the list... let me know your thoughts:

      Currently Using:
      @azure/ai-text-analytics
      @azure/data-tables
      @azure/event-hubs
      @azure/eventgrid
      @azure/identity
      @azure/search-documents
      @azure/service-bus
      @azure/storage-blob
      @azure/storage-file
      @azure/storage-queue
      @azure/web-pubsub
      @sendgrid/mail
      @sentry/node
      @sentry/tracing
      case-insensitive-map
      fs
      fs-extra
      jquery
      jsdom
      path
      stream
      truncatise

      Currently In Development:
      metascraper
      metascraper-audio
      metascraper-author
      metascraper-date
      metascraper-description
      metascraper-image
      metascraper-logo
      metascraper-publisher
      metascraper-readability
      metascraper-title
      metascraper-title
      metascraper-url
      metascraper-video

      Planning To Do Soon: Browser Automation
      chromedriver
      puppeteer
      selenium-webdriver
      unlighthouse (or auto-lighthouse)
      webdriverio (may not be necessary)

      Random Thoughts:
      email-templates

      girish 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff @ajtatum last edited by

        @ajtatum Let me look into if I can change the package so that users can install whatever packages they want. This way we don't need to keep updating the packages with extra modules.

        ajtatum benborges 2 Replies Last reply Reply Quote 5
        • ajtatum
          ajtatum @girish last edited by

          @girish That would be completely and totally awesome as that's really the only thing holding me back from migrating n8n to Cloudron... thanks for taking a look!

          1 Reply Last reply Reply Quote 2
          • ajtatum
            ajtatum last edited by ajtatum

            Any progress or additional thoughts on allowing users to install their own npm packages, @girish?

            Thanks,
            AJ

            girish 2 Replies Last reply Reply Quote 2
            • girish
              girish Staff @ajtatum last edited by

              @ajtatum It's on my list. I did have a quick look the other day, but it's not a straightforward fix since it seems n8n does not use NODE_PATH. So, I have to investigate more on how to make this work. Maybe I will open an upstream issue.

              ajtatum 1 Reply Last reply Reply Quote 3
              • benborges
                benborges @girish last edited by

                @girish That would simply be amazing !

                BenB

                1 Reply Last reply Reply Quote 1
                • ajtatum
                  ajtatum @girish last edited by

                  @girish I have my instance using nvm's path as I have multiple versions of node js required on the server. So n8n has it's own login with it's own nvm path and for the app itself, I have it look at nvm's node. Just letting you know how I have it in case it helps at all.

                  Thanks,
                  AJ

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @ajtatum last edited by

                    @ajtatum It seems that n8n does not use NODE_PATH atleast. So, I am not sure how one have an updatable instance with custom packages. Can you please share, what you do in your current instance? How do you update n8n after installing custom modules?

                    ajtatum 1 Reply Last reply Reply Quote 1
                    • ajtatum
                      ajtatum @girish last edited by

                      @girish So, I hope this answers your question, but after installing the Node Package, I allow it by adding it to my environment variables. I then monitor/manage n8n with pm2 and I call "pm2 restart n8n --update-env" and it all works.

                      girish 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @ajtatum last edited by

                        @ajtatum Thanks but how does this work after you update n8n ? Who/what installs the additional custom packages that you previously installed?

                        ajtatum 1 Reply Last reply Reply Quote 0
                        • ajtatum
                          ajtatum @girish last edited by

                          @girish To be honest, I'm not exactly sure. My n8n instance is setup so that the packages allowed are in both the environment file and get loaded as environment variables in the .bashrc script (I know it's doubling, but I can't recall which way worked). When there's an update, I just run npm install n8n@version, and then run pm2 restart and, well, it just works.

                          Sam_uk 1 Reply Last reply Reply Quote 1
                          • Sam_uk
                            Sam_uk @ajtatum last edited by

                            I'd like to use https://www.npmjs.com/package/@digital-boss/n8n-nodes-humhub in my N8N instance, so ability to install packages would be great.

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post
                            Powered by NodeBB