Cannot install or uninstall community nodes

Describe the problem/error/question

I cannot install any community node any longer. Today I wanted to add n8n-nodes-puppeteer trough - Settings - Community nodes and I got error message. Then I tried another community node, same error message. I tried to install another community puppeteer node, same result. I installed n8n-nodes-puppeteer manually in the n8n local folder. The folder of the nodes are there, the node is not visible in n8n.
And also just found out that I cannot remove any of the previously installed community nodes.
I am running Ubuntu 22.04 on local machine that is dedicated to n8n. Clean install, nothing else ever installed on the machine besides the Linux updates.

Screenshot_20240927_140629

What is the error message (if any)?

npm command failed
InternalServerError [ResponseError]: Error loading package "n8n-nodes-puppeteer" :Package could not be installed - check logs for details
    at CommunityPackagesController.installPackage (/usr/local/lib/node_modules/n8n/src/controllers/community-packages.controller.ts:111:10)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at handler (/usr/local/lib/node_modules/n8n/src/decorators/controller.registry.ts:79:5)
    at /usr/local/lib/node_modules/n8n/src/response-helper.ts:153:17 {
  level: 'error',
  tags: {},
  extra: undefined,
  httpStatusCode: 500,
  errorCode: 500,
  hint: undefined
} undefined
500 Error loading package "n8n-nodes-puppeteer" :Package could not be installed

and here is the error message that I got by trying to uninstall another node:

InternalServerError [ResponseError]: Error removing package "n8n-nodes-ntfy":Package could not be installed - check logs for details
    at CommunityPackagesController.uninstallPackage (/usr/local/lib/node_modules/n8n/src/controllers/community-packages.controller.ts:204:10)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at handler (/usr/local/lib/node_modules/n8n/src/decorators/controller.registry.ts:79:5)
    at /usr/local/lib/node_modules/n8n/src/response-helper.ts:153:17 {
  level: 'error',
  tags: {},
  extra: undefined,
  httpStatusCode: 500,
  errorCode: 500,
  hint: undefined
} undefined
500 Error removing package "n8n-nodes-ntfy":Package could not be installed

Please share your workflow

n/a

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.59.4
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Ubuntu 22.04

I just started a fresh instance via docker run --rm -it -p 5678:5678 n8nio/n8n:1.61.0, and was able to install both these packages without any issues.

are you using the stock docker images, or are you using a custom docker image?

I am not using any docker images at all, npm install

ah, in that case the issue is that these packages likely need some operating system level dependencies, that your system currently does not have.
If you can open a shell on this computer, please try installing these packages directly via npm to what the error is.

mkdir /tmp/test
cd /tmp/test
npm i  n8n-nodes-puppeteer

Well, here is the log from that operation, could not post it here directly:

Looks like puppeteer is failing to install. It could be an issue of a missing local dependency, or maybe n8n-nodes-puppeteer is using a an old unsupported version of puppeteer.
Since I’m not familiar enough with either of these projects, my recommendations would would be either to check in these projects github issues, or switch to n8n docker image.