Running node-red insall script moves npm
During the nodejs install, npm gets installed to /usr/local/bin/npm
, which is correct as the service is looking there.
However, after running the node-red script, npm gets reinstalled and moved to /usr/bin/npm
. Because of this, the service fails (See the following snippet from journalctl).
pi@raspberrypi:~ $ journalctl | grep "npm"
Aug 30 09:04:34 raspberrypi systemd[426]: iponiota.service: Failed at step EXEC spawning /usr/local/bin/npm: No such file or directory
Edited by Danny Kalnian