Good day everyone. I’m new to N8N. It really looks an amazing software to use with software I already use (Mautic, Invoice Ninja, …) and I really want to learn what I can do with it. To start with it, I wanted to deploy it. But here something already goes wrong…
Describe the issue/error/question
So during installation with NPM I have following error code showing up:
This is directly from the log:
6789 verbose cwd /root
6790 verbose Linux 3.10.0-1160.59.1.el7.x86_64
6791 verbose node v17.8.0
6792 verbose npm v8.6.0
6793 error code 127
6794 error path /root/.nvm/versions/node/v17.8.0/lib/node_modules/n8n/node_modu$
6795 error command failed
6796 error command sh -c node-pre-gyp install --fallback-to-build
6797 error sh: node-pre-gyp: command not found
6798 verbose exit 127
6799 timing npm Completed in 308695ms
Current OS: Centos 7 with directadmin and custombuilt 2 working.
I use putty to use an SSH shell with Root user rights.
I used following commands:
npm install n8n -g
I tried following commands too:
sudo npm install --unsafe-perm=true --allow-root
I also installed the node-pre-gyp with a separate command, but it doesn’t seem to be the solution.
Last point I wanted to tell is that I used google before posting this but unfortunately I couldn’t really find any useful information.
Thank you all for your time to read this and think with me on how to resolve the issue.
PS. If you need more info, don’t hesitate to give a shout.
Looking at the log it still seems like the OS is saying the command can’t be found. As a quick experiment I just set up a Digital Ocean droplet usign Cent 7 and I hit the same issue. It looks like it is failing to install sqlite3 and even an npm install -g sqlite3 results in the same error
I did find that installing without -g for just the sqlite3 package works, I have gone down an SELinux route as that has caused me issues with applications in the past but I had no luck with that either.
At this point I think it might be easier to just make a new user and see if that works I will continue to dig into this tomorrow to see if I can work anything out.