eykrehbein / strest

⚡️ CI-ready tests for REST APIs configured in YAML
MIT License
1.74k stars 59 forks source link

[Feature Request] Install locally #132

Open lonix1 opened 5 years ago

lonix1 commented 5 years ago

I installed via npm i -D @strest/cli, and installed the vscode plugin. When I run it I with ctrl+alt+r I get the error

/bin/sh: 1: strest: not found

The docs say to install globally, presumably then it would work. Many people don't install anything globally, ever, other than npm itself.

Please tell me to how I can make this work?

If it's not currently possible, please add the ability to install locally. Or perhaps add a config file, so we can specify where to find the executable, or that it should run using npx.

lonix1 commented 5 years ago

I nonetheless tried a global install, and that didn't work... :(

jgroom33 commented 5 years ago

does yarn work?

lonix1 commented 5 years ago

@jgroom33 I don't know anything about yarn...

jgroom33 commented 5 years ago

yarn is a newer package manager than npm

lonix1 commented 5 years ago

But presumably it will also install to /bin, so the original problem holds. A local install is the safest option.

If that's not viable, feel free to close. Maybe we can talk about it again if this gets upvotes / interest?

jgroom33 commented 5 years ago

I think since it is a cli tool that requiring global install is acceptable. But if there is another/better option, it should be implemented.

jgroom33 commented 5 years ago

The plugin should be implemented by using strest as an api instead of launching a shell. There is no API for strest currently.