Templates / Automate NPM package installation and updates for self-hosted environments

Automate NPM package installation and updates for self-hosted environments

Ready for 3.0

by Joachim Brindeau · 6,788 views · created 2025-03-23 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 7 nodes and runs on a schedule (every day) (plus 2 other triggers). It uses only n8n's built-in nodes.

How it runs

Trigger: On a schedule (every day) (plus 2 other triggers).

  1. libraries_set (Edit Fields (Set)): sets 1 field: libraries
  2. libraries_array (Edit Fields (Set)): sets 1 field: libraries
  3. libraries_split (Split Out): splits a list into separate items
  4. library_install (Execute Command): runs a shell command on the n8n host

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

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…

Excerpt from Joachim Brindeau's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.