Automate NPM Package Installation and Updates for Self-Hosted Environments — n8n Workflow
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
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 7 nodes, connecting executecommand, manualtrigger, n8ntrigger.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (7)
libraries_array
set
trigger_manual
manualTrigger
libraries_split
splitOut
library_install
executeCommand
trigger_schedule
scheduleTrigger
trigger_instance
n8nTrigger
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
automate-npm-package-installation-and-updates-for-self-hosted-environmentsfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Joachim Brindeau
@joachimbrindeau
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →