Problem:
Cannot install community nodes at all.
Things I’ve tried:
- Tried installing via container shell
- Did multiple new installs
- Tried various env variables
- Tried declaring permissions via ACL
- Tried changing UID/GID
- Multiple Different Nodes
- Tried creating and declaring home/user and community node storages
- Tried installing via a custom app (straight from docker)
- Allocated all necessary permissions, even tried running as privileged
- Researched and troubleshooted with ChatGPT, the fourms, and google for hours trying to fix
-etc
What is the error message (if any)?
When trying to install via shell I get: npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 568:568 “/.npm”
npm error Log files were not written due to an error writing to the directory: /.npm/_logs
npm error You can rerun the command with --loglevel=verbose
to see the logs in your terminal
When trying to install via GUI I get: Error loading package “n8n-nodes-discord-trigger” :Command failed: npm init -y Exit prior to config file resolving cause A system error occurred: uv_os_homedir returned ENOENT (no such file or directory)
I’ve also looked through verbose. Most of it seems to be permission errors but I cannot figure out why this would be. I can post here if you need but its long. I have been able to get different error messages over the hours (on instances ive since deleted), but all stems back to here.
Please share your workflow
(does not apply to singular workflow)
Share the output returned by the last node
Information on your n8n setup
- **n8n version: 1.81.2 (latest version available)
- **Database (default: SQLite): default
- **n8n EXECUTIONS_PROCESS setting (default: own, main): default
- **Running n8n via (Docker, npm, n8n cloud, desktop app): Truenas scale built in docker app
- **Operating system: Truenas Scale (Electric Eel)