Skip to content

n8nΒ #5190

@jaainil

Description

@jaainil

βœ… Have you read and understood the above guidelines?

Yes

πŸ“œ What is the name of the script you are using?

ct/n8n.sh

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/n8n.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 12

πŸ“ Provide a clear and concise description of the issue.

During npm update -g n8n, the install fails due to a ENOTEMPTY error while renaming the n8n module directory. This happens at the final step of the script execution (line 38).

This issue seems to be caused by leftover temp folders (e.g., .n8n-*) in /usr/lib/node_modules β€” possibly from a prior interrupted install or npm permission issue.

πŸ”„ Steps to reproduce the issue.

πŸ”„ Steps to Reproduce

  1. Run the script with default settings
  2. Wait for npm update -g n8n to begin
  3. Encounter failure with rename error

❌ Paste the full error output (if available).

   ____  ( __ )____ 
  / __ \/ __  / __ \
 / / / / /_/ / / / /
/_/ /_/\____/_/ /_/ 
                    

npm error code ENOTEMPTY
npm error syscall rename
npm error path /usr/lib/node_modules/n8n
npm error dest /usr/lib/node_modules/.n8n-seyU16Gs
npm error errno -39
npm error ENOTEMPTY: directory not empty, rename '/usr/lib/node_modules/n8n' -> '/usr/lib/node_modules/.n8n-seyU16Gs'
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-06-16T14_10_02_814Z-debug-0.log
⠏ Updating n8n LXC
[ERROR] in line 38: exit code 0: while executing command $STD npm update -g n8n

root@n8n:~# 

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions