This question is an exact duplicate of:
My nodejs app is using pigpio. It keeps getting error because port pigpiod is listen on port 8888 already. I can kill -9 the process but when I restart pi port 8888 is jammed up again. How do i solve this issue? Should i remove the npm pigpio libary and reinstall?