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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. Request for npm packages so I can migrate my n8n instance

Request for npm packages so I can migrate my n8n instance

Scheduled Pinned Locked Moved N8N
n8nnpmnodejsautomation
12 Posts 4 Posters 2.3k Views 6 Watching
  • 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.
  • girishG girish

    @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.

    ajtatumA Offline
    ajtatumA Offline
    ajtatum
    wrote on last edited by
    #3

    @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
    2
    • ajtatumA Offline
      ajtatumA Offline
      ajtatum
      wrote on last edited by ajtatum
      #4

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

      Thanks,
      AJ

      girishG 2 Replies Last reply
      2
      • ajtatumA ajtatum

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

        Thanks,
        AJ

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #5

        @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.

        ajtatumA 1 Reply Last reply
        3
        • girishG girish

          @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.

          benborgesB Offline
          benborgesB Offline
          benborges
          wrote on last edited by
          #6

          @girish That would simply be amazing !

          BenB

          1 Reply Last reply
          1
          • girishG girish

            @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.

            ajtatumA Offline
            ajtatumA Offline
            ajtatum
            wrote on last edited by
            #7

            @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
            0
            • ajtatumA ajtatum

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

              Thanks,
              AJ

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #8

              @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?

              ajtatumA 1 Reply Last reply
              1
              • girishG girish

                @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?

                ajtatumA Offline
                ajtatumA Offline
                ajtatum
                wrote on last edited by
                #9

                @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.

                girishG 1 Reply Last reply
                0
                • ajtatumA ajtatum

                  @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.

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #10

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

                  ajtatumA 1 Reply Last reply
                  0
                  • girishG girish

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

                    ajtatumA Offline
                    ajtatumA Offline
                    ajtatum
                    wrote on last edited by
                    #11

                    @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_ukS 1 Reply Last reply
                    1
                    • ajtatumA ajtatum

                      @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_ukS Offline
                      Sam_ukS Offline
                      Sam_uk
                      wrote on last edited by
                      #12

                      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
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search