Have been updating about once a month, and usually have no problems.
Running on AWS, lightsail, on Debian with PM2 and caddyserver.
Since the start I am running these versions. Always have worked fine.
Suddenly I am getting this when trying to update. Please help!!
pm2 stop n8n
npm install -g [email protected] (here is where the error happens)
pm2 restart n8n
[email protected]:/home/admin# npm install -g [email protected]
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-06-29T02_44_28_959Z-debug-0.log