Hey @Ruriko, welcome to the community
I am sorry to hear you’re having trouble with getting n8n up and running. The output you have shared suggests a permission problem to me:
(...)
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/14.19.0"
(...)
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/n8n/node_modules/ssh2/.node-gyp'
(...)
This is something I can’t reproduce on my end and I suspect it might be related to how you have installed Node.js and npm. You might want to try running the install command with sudo
.
However, an easier way might be the use of docker. That way, all of the installation would happen in an isolated container coming with a working Node.js environment without having any effect on your existing setup. Assuming you have docker installed already, you could fire up an n8n container like this:
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8n