You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2021. It is now read-only.
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?
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 nodeand 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:
That didnt help either