Problem installing community nodes in self hosted n8n

I am on a self hosted n8n version 1.94.1
While trying to install any community node, I am getting the same error:

2025-05-30T05:27:43.051340094Z Error loading package "n8n-nodes-chatwoot" :Cannot set properties of undefined (setting 'n8n-nodes-chatwoot')
2025-05-30T05:27:43.051416879Z ResponseError: Error loading package "n8n-nodes-chatwoot" :Cannot set properties of undefined (setting 'n8n-nodes-chatwoot')
2025-05-30T05:27:43.051425506Z     at CommunityPackagesController.installPackage (/usr/local/lib/node_modules/n8n/src/controllers/community-packages.controller.ts:127:10)
2025-05-30T05:27:43.051432009Z     at handler (/usr/local/lib/node_modules/n8n/src/controller.registry.ts:74:12)
2025-05-30T05:27:43.051437949Z     at /usr/local/lib/node_modules/n8n/src/response-helper.ts:157:17

I have tried this with multiple nodes and the same error persists.

Hello @Dhiraj_Khanna!
Welcome to the community!

The best fix is to upgrade n8n to the latest version, where this issue has already been resolved. The maintainers patched this bug shortly after v1.94.1.

Let me know

Thanks for the reply. Currently I am using a self hosted version which automatically prompts me when updates are available. It doesn’t show any updates for 1.94.1. Should I change my Docker compose file image? Right now it is image: docker.n8n.io/n8nio/n8n

I find out this other thread that suppose is useful for you: Upgrade n8n version on docker - #3 by ihortom

Let me know!