@Harry-van-der-Wolf and @leader21
When I type in sudo which node
I only get
pi@raspberrypi:/usr/local $ sudo which node
/usr/local/bin/node
With node --version
I get
pi@raspberrypi:/usr/local $ node --version
v4.6.2
pi@raspberrypi:/usr/local $ sudo node --version
v4.6.2
Anyway, I have done it like @leader21 mentioned and reinstalled it.
Afterwards, I checked the /etc/init.d/pimatic
and I got follwoing path
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/node/bin
Is this the correct path or have I to edit the path. If I have to edit it, please tell me where.
Sebastian