# Install npm libraries in n8n on startup or schedule
This workflow automates the installation of npm libraries within the n8n environment, enabling dynamic extension of functionality without manual server access. Ideal for developers and administrators managing headless setups or standardizing dependency deployment.
## Who it´s for
- n8n developers needing to add npm packages without server restarts
- n8n server admins automating project dependency rollouts
- Automation engineers working in environments without direct terminal access
## What the automation does
- Accepts a string of library names (e.g., "axios, cheerio")
- Splits the string into an array and processes each package individually
- Checks if a library is already installed to prevent redundant operations
- Executes `npm install` via shell command
- Can be triggered manually, on n8n instance start, or by cron schedule
## What´s included
- Ready-to-use n8n workflow
- Logic for list parsing and command execution
- Integrations with system components: Node.js, npm, Bash
- Basic text instructions for launch and adaptation
## Requirements for setup
- Access to an n8n instance with permissions to run shell commands
- Node.js and npm properly configured in the n8n environment
- Ability to use executeCommand in n8n
## Benefits and outcomes
- Eliminates manual package installation on the server
- Ensures environment reproducibility across restarts
- Enables quick testing of new libraries via manual triggers
- Supports automatic deployment of all required dependencies on n8n startup
- Simplifies management of headless installations without SSH access
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet