[QUESTION] How to use with a private repo?
Opened this issue · 0 comments
chanan commented
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