I am trying to create a cli with node, and I have the following key in package.json
"bin": {
"ping":"index.js"
},
and my index.js file
console.log("Pong! Yeah");
But this is getting opened in microsoft script-host, and not in node.. How to fix it?
I forgot to add this line!
#!/usr/bin/env node