How to make a private npm repo executable with npx?
Asked Answered
npx
C

0

11

I'm working on a command-line library, @namespace/cli.

When I'm in my local project directory, I can run npx . and the cli starts as expected.

However, after I npm publish and then run npx @namespace/cli, I get the error "cli is not a command".

What's the correct way to structure this project so it can be invoked using npx?

Chellman answered 28/8, 2019 at 19:37 Comment(3)
Did you find a solution?Pollie
Unfortunately, I have not :/Chellman
Any updates on this?Terricolous

© 2022 - 2024 — McMap. All rights reserved.