title: node.js command line application not runs
body: <p>I am building a node js command line pacakge, and when I am linking one of my projects to the command line project when I am trying to use the command, it's trying to open it like a js file on windows, and not as a node js application.</p>
  
  <p>this is the command line project package.json:</p>
  
  <pre><code>{
    "name": "sitemap-generator",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "",
    "license": "ISC",
    "dependencies": {
      "commander": "^2.19.0",
      "esm": "^3.0.84",
      "fs": "0.0.1-security"
    },
    "bin": {
      "smg": "./cli.js"
    },
    "engines": {
      "node": "&gt;=9.5"
    }
  }
  </code></pre>
  
  <p>and the index.js file:</p>
  
  <pre><code>'use strict';
  
  const program = require('commander');
  
  program
      .version('0.0.1')
      .description('Contact management system');
  
  program.parse(process.argv);
  </code></pre>
  
  <p>the error:</p>
  
  <p><a href="https://i.stack.imgur.com/1WX3I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1WX3I.png" alt="enter image description here"></a></p>