Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

[QUESTION] How to use with a private repo? #86

@chanan

Description

@chanan

What / Why

I would like to publish an NPX command to be used internally at my company. When I try to run it, it looks like it found the package.json as I can see package I am using going by on the display, but when it's done it says command not found: .

What I have done so far is update the src/index.js file with #!/usr/bin/env node and package.json with "bin": "src/index.js" and then published the package to my local github repo. Is there anything else I need to do to be able to use my package with npx?

I also tried the bin syntax I found in cowsay:

"bin": {
    "my-package-name": "./src/index.js"
  },

That didnt help either

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions