sh: <MY_PACKAGE_BIN_NAME>: command not found when used with npx #910
Unanswered
pawelpiotrowski
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Did you run the global install for the command to register the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I just started with nest-commander but I can't get example taken from the docs running.
Published package to npm (nestcms-cli), here is my package.json:
But when trying to execute basic command:
npx nestcms-cli basic -s hello
I am getting
sh: nestcms-cli: command not found
When testing locally I can see the output correctly:
npm run start -- -- basic -s hello
or
node dist/main basic -s hello
->
{ param: [], string: 'hello' }
Have I missed something?
Link to repo: https://github.com/pawelpiotrowski/nestcms-cli
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions