Serialport npm List of available COM ports

I’m having a problem with a part of my program and i think I know what the problem is I can’t find way to fix it, hence need your help. I think the problem is not with the serialport.list function …