volta-cli / volta

Volta: JS Toolchains as Code. ⚡
https://volta.sh
Other
11.1k stars 235 forks source link

systemd and Volta installations #584

Open chriskrycho opened 5 years ago

chriskrycho commented 5 years ago

This is probably out of scope other than perhaps as a documentation item (or perhaps even just this issue existing here will be sufficient search engine noise to help!), but I ran into an interesting issue this past week: working on a Ghost installation, I ran into problems because the systemd configuration included the Node version it was installed with (presumably as a workaround for the problems Volta solves!), and after making a change to the version installed, things wouldn't run at all. It took a bunch of spelunking through systemd logs and configurations before I was finally able to isolate it to that.

ifduyue commented 9 months ago

I'm using /home/USER/.volta/bin/node directly in systemd service and it works. Maybe there is better way.