Automate NPM Package Installation and Updates for Self-Hosted Environments — n8n Workflow

Medium complexity Trigger7 nodes💎 Other👁 3,154 viewsby Joachim Brindeau

Overview

Are you looking to install external libraries for your self-hosted N8N instance? This automated workflow makes adding npm packages to your N8N environment quick and effortless.

Beware, this workflow only works on self-hosted instances. What This Workflow Does This solution automatically installs npm packages like axios, cheerio, or node-fetch in your self-hosted N8N Docker container, making them immediately available in Code nodes. Key features

✅ Automated Installation: No manual npm command

Nodes used

libraries_arraytrigger_manuallibraries_splitlibrary_installtrigger_scheduletrigger_instance

Workflow Preview

L
libraries_set
T
trigger_manual
L
libraries_array
L
libraries_split
L
library_install
T
trigger_schedule
T
trigger_instance
7 nodes6 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 7 nodes, connecting executecommand, manualtrigger, n8ntrigger.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (7)

LI

libraries_array

set

#1
TR

trigger_manual

manualTrigger

#2
LI

libraries_split

splitOut

#3
LI

library_install

executeCommand

#4
TR

trigger_schedule

scheduleTrigger

#5
TR

trigger_instance

n8nTrigger

#6

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded automate-npm-package-installation-and-updates-for-self-hosted-environments file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Automate NPM Package Installation and Updates for Self-Hosted Environments", "nodes": [...], ...}

Integrations

executecommandmanualtriggern8ntriggerscheduletriggersetsplitout

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes7
Complexitymedium
Triggertrigger
Views3,154
CategoryOther

Created by

Joachim Brindeau

Joachim Brindeau

@joachimbrindeau

Tags

executecommandmanualtriggern8ntriggerscheduletriggersetsplitout

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →