Last updated 6 years ago
In your package.json, include (see also package.json docs ):
package.json
{ "bin" : { "myapp" : "./cli.js" } }
Making sure the relevant script has the header:
#!/usr/bin/env node
npm link