Cannot install community nodes anymore

Describe the problem/error/question

after being away for a while, I updated the selfhosted ai kit by pulling the latest n8n image. Now I can’t anymore install community modules through the n8n gui. any idea how to fix this?

this worked a couple of weeks ago.

I understand that this was an error in earlier versions of n8n. But I am running 1.105.4 which should have fixed this a long time ago?

What is the error message (if any)?

I get errors like this: Error installing new package Error loading package “n8n-nodes-microsoft-sharepoint” :Cannot set properties of undefined (setting ‘n8n-nodes-microsoft-sharepoint’)

Information on your n8n setup

  • n8n version:
    1.105.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
    n8n-ai-kit on docker
  • Operating system:
    ubuntu 24.04

Can you share the code for the node?

It is not possible for any community node at all. That is, every package I tried from keywords:n8n-community-node-package - npm search cannot be installed.
I tried
n8n-nodes-microsoft-sharepoint because I had it installed and removed it to test

n8n-nodes-data-validation

…but basically it is the same error for any of those packages in keywords:n8n-community-node-package - npm search

I know it worked in previous versions of n8n, since I installed and used community packages. I can’t tell you what version I had when I installed those packages, though.

Now I have 1.105.4 and I can’t install community packages anymore through the GUI.

I am running the n8n-ai-kit with docker and in docker-compose.xaml, the necessary flags for community packages are set. Otherwise I would not have to be able to use community packages before.

On the following articles, it is said that an update was fixing the problem. That was around version 1.94.1

Problem installing community nodes in self hosted n8n - Questions - n8n Community

I tried installing a community node with the manual steps described in Manual installation | n8n Docs

That did not work.

Moreover, the remaining community node that I did not touch has now a problem…

When I uninstall, I fear I cannot install again…

I have just tested installing n8n-nodes-paperless-ngx on a clean 1.106.0 docker image and they appear to be working as expected, I suspect there may be something environmental going on here.

Update:
I checked the docker repository and found there is a newer version 1.106.1. (tag=next)

I installed that version by editing docker-compose.yaml

# image: n8nio/n8n:latest
image: n8nio/n8n:1.106.1

Testing with this version was successful. I can install community packages again.

Release notes on Releases · n8n-io/n8n do not mention the problem with installing community nodes as fixed..

it likely isn’t mentioned because we were not aware of the issue, I have tried with 105 as well and that seemed to work.

Hi @DanielH were you able to get your splitting the pdf file problem solved?

Hey all I was having this error for a while and I finally sat down and fixed it.

Here’s how I fixed the “Error loading package … Cannot set properties of undefined (setting ‘n8n-nodes-XXXX’)” issue for me on a self-hosted/Docker setup when installing community nodes via the UI.

Symptom

  • Installing a package (e.g., n8n-nodes-serpapi, n8n-nodes-firecrawl) from Settings → Community Nodes fails with:

    Error loading package "n8n-nodes-<name>" :Cannot set properties of undefined (setting 'n8n-nodes-<name>')
    
    
  • Logs show something like:

    CommunityPackagesController.installPackage ... Cannot set properties of undefined (setting 'n8n-nodes-serpapi')
    
    

Root cause (in my case)

  • My community nodes workspace file /home/node/.n8n/nodes/package.json existed but didn’t have a dependencies field. The UI tries to write pkgJson.dependencies["package-name"] = "version" and crashes if dependencies is undefined.

Quick fix (run inside your n8n container)

# 1) Inspect your package.json
cat /home/node/.n8n/nodes/package.json
# If it looks like this (no "dependencies"), this fix may help:
# {
#   "name": "nodes",
#   "version": "1.0.0",
#   "description": "",
#   "main": "index.js",
#   "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },
#   "keywords": [],
#   "author": "",
#   "license": "ISC"
# }

# 2) Patch it to add "private": true and an empty "dependencies" object
node -e 'const fs=require("fs");const p="/home/node/.n8n/nodes/package.json";const j=JSON.parse(fs.readFileSync(p,"utf8"));j.private=true;j.dependencies=j.dependencies||{};fs.writeFileSync(p,JSON.stringify(j,null,2));console.log("patched:",p)'

# 3) Ensure permissions are sane for the node user
chown -R node:node /home/node/.n8n
chmod 775 /home/node/.n8n /home/node/.n8n/nodes

# 4) (Optional but recommended) Make sure the community packages registry file exists
[ -f /home/node/.n8n/community-packages.json ] || printf '{ "installed": {} }\n' > /home/node/.n8n/community-packages.json
chmod 664 /home/node/.n8n/community-packages.json
chown node:node /home/node/.n8n/community-packages.json

# 5) Restart n8n
exit
docker restart <your-n8n-container-id-or-name>

Environment flags to double-check

  • N8N_COMMUNITY_PACKAGES_ENABLED=true

After this, I could install community nodes from the UI just fine:

  • n8n-nodes-serpapi

  • n8n-nodes-firecrawl

Notes

  • If you run separate main + worker containers, make sure both mount the same /home/node/.n8n volume so workers can execute the newly installed nodes.

  • If you still get the error after the patch, tail logs while clicking “Install” and confirm:

    • /home/node/.n8n/nodes/package.json now contains "dependencies": {} (or the installed package after a successful attempt).

    • /home/node/.n8n/community-packages.json exists and is valid JSON with an "installed" object.

Hope this helps anyone hitting the same snag!

5 Likes

Thank you! This worked perfectly for me.

I encountered a similar error when installing a community node, but it was a little different. The error was as follows:Error installing new package

Error loading package “n8n-nodes-comfyui-media” :The community nodes service is temporarily unreachable. Please try again later. What should I do? Thanks for your reply. Version 1.112.6

thank you @Joe_Peres your steps worked a treat!

my package.json already had private: true set, it was just missing the empty dependenices object

Thank you very match, worked for me.

Thanks a lot. It really worked for me!

I am experiencing same issue, using docker compose n8n and permissions seems to be correct.

Error:

n8n-1  | 2025-12-12T11:00:18.665Z | error | Error loading package “n8n-nodes-firecrawl” :Cannot set properties of undefined (setting ‘n8n-nodes-firecrawl’)n8n-1  | ResponseError: Error loading package “n8n-nodes-firecrawl” :Cannot set properties of undefined (setting ‘n8n-nodes-firecrawl’)n8n-1  |     at CommunityPackagesController.installPackage (/usr/local/lib/node_modules/n8n/src/modules/community-packages/community-packages.controller.ts:132:10)n8n-1  |     at handler (/usr/local/lib/node_modules/n8n/src/controller.registry.ts:95:12)n8n-1  |     at /usr/local/lib/node_modules/n8n/src/response-helper.ts:161:17n8n-1  |  {“file”:“error-reporter.js”,“function”:“defaultReport”}