N8n upgrade

hello everyone,
how do i update n8n in a specific folder? i installed n8n not as global but in a specific subdirectory so npm -g install n8n doesn’t update me. my n8n is in / public_html / node_modules

Hey @marconte!

Is n8n globally installed on your machine? If yes, you can refer to the solution here: https://stackoverflow.com/questions/53238230/how-to-update-globally-installed-npm-packages

If you don’t have n8n installed globally, you can refer to the solutions mentioned here: https://stackoverflow.com/questions/16525430/npm-check-and-update-package-if-needed

1 Like

thank you very much

i have try by
npm install --prefix /home/mysite/public_html/ n8n
and when restart pm2 version is 0.117 its ok?

Hey @marconte,
I would suggest you take a look at the PM2 documentation, since you’re using n8n as an npm package, a solution mentioned there should work for you :slight_smile: