A cable protector is one of the simplest solutions to under-cabinet wires. Tie wraps can be used to secure the wiring to the cabinet's underside. The length of the wiring should go from the light to the wall.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.