DEV Community

[Comment from a deleted post]
Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

You can try npm link first, and run with npx, before publishing it.

About the error, make use package.json is

{
  "bin": {
    "<SCRIPT_NAME>": "subscrape.js"
  }
}

Or

{
  "bin": "subscrape.js"
}