title: Node.js serial port on windows Access denied
body: <p>I have following error while running short program:</p>
  
  <pre><code>events.js:2817: Uncaught Error: Opening \\.\COM1: Access denied
  </code></pre>
  
  <p>my program is just to try to open the port and see what is it working: </p>
  
  <pre><code>var SerialPort = require("serialport").SerialPort;
  
  var serialPort = new SerialPort('COM1',{baudrate: 9600}, true);
  
  
  serialPort.on ('open', function () {
      console.log("Open");
      serialPort.write(0x05);
      serialPort.on ('data', function( data ) {
          console.log("data" + data.toString());
      });
  });
  </code></pre>
  
  <p>I am using USB to COM adapter that is set on COM1. </p>